Hi I'm new here.Sorry my English is bad.
I set a 8-direction movement for a sprite and it just keept on moving and moving until it disappeared from the screen.
But I want it to STOP moving when it reach the edge of the window.
Is there a way to do that?
Thanks!