V
Valerio
Guest
I create a sprite 2x2 pixel that moves up and down in a room.
I set the steps to 1 and the speed of the sprite to 1 pixel per step.
When the event Intersect Boundary occurs, the sprite invert the direction of movement.
The problem is this:
on the top side of the room, the sprite leaves the room of 1 pixel before reversing the direction (I think it's ok)
but on the down side of the room, the sprite leaves the room of 2 pixel before reversing the direction.
Why this difference ?
I set the steps to 1 and the speed of the sprite to 1 pixel per step.
When the event Intersect Boundary occurs, the sprite invert the direction of movement.
The problem is this:
on the top side of the room, the sprite leaves the room of 1 pixel before reversing the direction (I think it's ok)
but on the down side of the room, the sprite leaves the room of 2 pixel before reversing the direction.
Why this difference ?