Hi,
Why do I always get 0 in text? What is the best way to compare the x and y coordinate of an actor with screen boundaries?
Andreas
sprintf(text, "%f", x);
textNumber = x;
What is the best way to compare the x and y coordinate of an actor with screen boundaries?
akr wrote:Hi,
Why do I always get 0 in text? What is the best way to compare the x and y coordinate of an actor with screen boundaries?
Andreas
int i=actor.x;
int j=actor.y;
sprintf(text,"%i,%i",i,j);
Whats the reason for x to be float? As far as i know xmouse is integer.
I am confused. Is there a document where I can find the types?
Users browsing this forum: No registered users and 1 guest