Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - AMateus

#1
Hello,

Another weird problem from me lol

I have a ball bouncing around and a platform. I would like to know in which side the ball collide to change the direction accordingly (could be left, right, top or bottom).

Currently the collision based on y is working fine. Problem is when the ball collides with the left or right side of the block. I've tried some ideas taken from chating, but I'm having some problems implementing it. And unfortunately SPRCOLL doesn't give any info about the collision =)

So, has anyone done this before or has some solution/idea?

Thanks,
António
#2
GLBasic - en / EXP()
2011-Oct-04
Hi,

Is there a way to calculate EXP(number) in GLBasic? I don't seem to find it in the manual. Is it implemented?

I have tried inline but give me errors on compile (not surprised here cause I'm not a C fellow =P).

Code (glbasic) Select

// Beginning of the module
INLINE

#include <math.h>
ENDINLINE


// and then the function
FUNCTION Exponential#: value#

INLINE

return exp (value);

ENDINLINE

ENDFUNCTION


When compiling the error is:
Code (glbasic) Select

C:\Users\ANTNIO~1\AppData\Local\Temp\glbasic\gpc_tempg.cpp: In member function `DGInt __GLBASIC__::tMath::Exponential(DGInt)':
C:\Users\ANTNIO~1\AppData\Local\Temp\glbasic\gpc_tempg.cpp:218: error: `exp' was not declared in this scope


Thanks,
António
#3
Hi,

For those who work with the android emulator from the sdk, you know how desperately slow it is.

I could have found out the solution on this topic: http://stackoverflow.com/questions/1554099/slow-android-emulator

Relevant information:

Install VirtualBox (http://www.virtualbox.org/).
Download iso-file that you need (http://code.google.com/p/android-x86/downloads/list)
Create a virtual machine Linux 2.6/Other Linux, 512 Mb RAM, HD 2 Gb. Network: PCnet-Fast III, attached to NAT. You can also use bridged adapter, but you need a DHCP server in your environment.
Install Android x86 (http://www.android-x86.org/) on the emulator, run it.
Check the Virtual Machine IP
Run cmd on your XP, change dir to your Android tools dir, type adb connect <virtual_machine_IP>

Going to check this with VMWare. and I will give feedback :)

Regards,
António
#4
Hello,

In the Company Name Field, if I put any name with accent (ex: António Mateus) I alway get a error message when I try to run a simple Hello World program. The error message says "Please Create First". If I take the accent (ex: Antonio Mateus) everything runs well.

Not a severe bug but nevertheless I'm reporting ;)

Regards,
António :P
#5
GLBasic - en / Mouse click
2011-Sep-20
Hello,

Been using (, and also evaluating buying it for the future) GLBasic free version for prototyping some ideias for sometime now, and today I faced a problem I couldn't solve (or at least not the way I wanted to :P)

The problem is a simple one: You have a sprite on screen (the coordinates and/or size of it depends on the resolution on the given platform) and I need to get the x,y image coordinates of the mouse click. The goals if, of course, to know where, in the image and in a given radius, the user clicked. For example, if you want to code a game of find the differences in the images, how would you know where in the image the user clicked?
Is there some command that returns this info or we must do the common "if click>= boxleft corner and click <= boxrightcorner blablabla" way?!

Thanks in advance.

Regards,
António