Discuss Scratch

  • Discussion Forums
  • » Help with Scripts
  • » 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 [RSS Feed]
YIPPECREATURE3
Scratcher
1 post

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

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

Last edited by YIPPECREATURE3 (April 8, 2024 15:14:24)

Pixilized
Scratcher
100+ posts

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

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

  • Discussion Forums
  • » Help with Scripts
  • » 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 [RSS Feed]

Powered by DjangoBB