Why isn’t transition returning regular x coordinates? I’m trying to make a collision detection with the player(player.x) and a moving object(object.x) but the coord object.x is returning doesn’t always match my non-moving player.x.
My player.x is locked at 120 since he isn’t moving in X space, only Y but object.x sometimes return X as this:
Object X coord is: 125
Object X coord is: 124
Object X coord is: 123
Object X coord is: 122
Object X coord is: 121
Object X coord is: 119
Object X coord is: 118
and it varies. So it skips a few numbers. How come?
Oh, I might add that I’m using math.ceil to round the numbers up. I’m guessing that has something to do with it. If I don’t round the numbers up I get object.x coords that look like this “120.16400146484” and that don’t work with my collison detection since it has decimals. [import]uid: 21652 topic_id: 14702 reply_id: 314702[/import]
[import]uid: 12482 topic_id: 14702 reply_id: 54396[/import]