how do I get my costume to stop moving when it hits a certain point like if I want it to not move up or down if it goes to for example y 50

id: 753226

category: Help with Scripts

posts: 2

I need help with this honestly does anyone know how to make my costume stop moving when it hits a certain point like if I want it to not move up or down if it goes to for example y 50
Pixilized Pixilized loading
If I understand correctly, you want a sprite to continue moving until it hits a certain point. If that is the case, the code is very simple. I have written it below for you.
… :: grey
Repeat until <(y position) = [Stopping point]>
movement scripts :: grey
End
… :: grey