This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-10-17 12:55:05

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

clicking one sprite to stop another sprites script

HEY I NEED HELP!!! I am making a game where you can do multiple things. One of those things will be jumping on a trampoline. I want it so that he is jumping forever until the stop jumping button in clicked. Then he's going to get off the trampoline. Does anyone know how to do that?  hmm

Offline

 

#2 2010-10-17 13:51:38

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: clicking one sprite to stop another sprites script

Add this to the sprite that is jumping, putting the jumping script inside the repeat until.
http://i52.tinypic.com/wthvh5.gif
You can replace the stop script block with a script to get the sprite off the trampoline if you want.

Then add this script to the stop button.
http://i51.tinypic.com/1075it3.gif

Last edited by melikecheese (2010-10-18 11:18:28)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#3 2010-10-17 19:36:21

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

Re: clicking one sprite to stop another sprites script

Tahnks

Offline

 

Board footer