In a program I made, I used variables to represent the x and y coordinates of some sprite, for example, when x = 1 and y = 2, go to (60, 120). When you press the arrow keys, these values will change by Integers and so will the sprite's x and y position. For some reason, however, doing this would sometimes result in situations like x = 3.846298569837 x 10^(-16) which is very very close to 0, but it still threw my program off quite a bit. I fixed it with a rounding script, but I'm still not sure whether this is my error or Scratch's.
Offline
Could you give us a link to the project so we can see what's going on here?
Offline
It happens because scratch pixels don't exactly overlap with screen pixels, so x and y positions adjust themselves automatically to pixels they can display themselves on. It only happens with x and y not other variables and usually the difference is too small to matter, and when it is, you can just use round.
Offline