Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need help with a basketball game.
- Ravenclaw_Princess
-
23 posts
Need help with a basketball game.
I need help with this game, I want it to move back and forth, until you press space, and it goes up, and if it touches the red color of the hoop, it goes in. But when I press space, it still goes back and forth while rising. Any help? This is the game!
- mryork
-
16 posts
Need help with a basketball game.
The problem is your repeat until space bar is click is only being checked every 2.4 seconds. While you are gliding or waiting it is not checking so when space is clicked it changes y and then the glide pushes it back down. If you go to control and add a stop all other scripts in this sprite block directly below the When space is clicked block it will work.
- Ravenclaw_Princess
-
23 posts
Need help with a basketball game.
The problem is your repeat until space bar is click is only being checked every 2.4 seconds. While you are gliding or waiting it is not checking so when space is clicked it changes y and then the glide pushes it back down. If you go to control and add a stop all other scripts in this sprite block directly below the When space is clicked block it will work.
Oooohhh. Thanks!
- Discussion Forums
- » Help with Scripts
-
» Need help with a basketball game.