Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprite moving when scrolling stops
- -Error-404-
- Scratcher
95 posts
Sprite moving when scrolling stops
I am working on a scrolling game, I made the stage stop scrolling while it scrolls to the start or end, but I also want the character to not always stay in the middle but be able to move left and right (only) when the ground stops scrolling.
If anyone knows how to do that, please help!
Link: https://scratch.mit.edu/projects/293823868
If anyone knows how to do that, please help!
Link: https://scratch.mit.edu/projects/293823868
- -Tetro-
- Scratcher
100+ posts
Sprite moving when scrolling stops
Since the script sets the player's X to 0 for the scrolling, all you have to is put an if statement around the “set X to 0” and the other scrolling code.
This is Thanos Cat. He snapped his fingers and destroyed half of Scratch. https://scratch.mit.edu/studios/5811684/
- Discussion Forums
- » Help with Scripts
- » Sprite moving when scrolling stops