I asked this once before but didn't get a full answer.
If I print to screen a sprite's location it will say x= 150.4545353 and y = 45.3434334.
The problem is, If I want to sprite to do something when it hits, say 180 on the y axis, the code will never fire because of the decimal point. Thus I always have to Trunc() the x & y to figure out where i am. Is there not an easier way? I would like to just put:
if (x == 120)
Do whatever;
end;
If I print to screen a sprite's location it will say x= 150.4545353 and y = 45.3434334.
The problem is, If I want to sprite to do something when it hits, say 180 on the y axis, the code will never fire because of the decimal point. Thus I always have to Trunc() the x & y to figure out where i am. Is there not an easier way? I would like to just put:
if (x == 120)
Do whatever;
end;