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

#1 2011-10-01 21:30:07

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Making a sprite stop temporarily

I would like to make a feature in a game where if a sprite1 touches the moving sprite2 (not actual numbers), it will make sprite2 stop temporarily, then keep going. How would this be done? Is this possible? Thanks for commenting  smile .


http://i50.tinypic.com/dx00pd.gif

Offline

 

#2 2011-10-01 21:40:14

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Making a sprite stop temporarily

Well you could use something like this:

When flag clicked
forever
   you movement script here
   if touching <sprite1>
       wait until not touching <sprite1>
  end if
end forever


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2011-10-01 21:41:30

nextstorm
Scratcher
Registered: 2009-12-13
Posts: 1000+

Re: Making a sprite stop temporarily

It is possible.

forever {
repeat until touching Sprite1 {
move 10 steps }
wait 2 seconds }

OR:

repeat until touching Sprite1 {
move 10 steps }
wait 2 seconds
forever { move 10 steps }


bye

Offline

 

#4 2011-10-01 23:25:56

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: Making a sprite stop temporarily

Thanks a lot!


http://i50.tinypic.com/dx00pd.gif

Offline

 

#5 2011-10-09 13:13:14

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: Making a sprite stop temporarily

OK, this might be considered a dead post, but I would like to know if there is a way to do this so that whenever it happens, it waits until it is gone, and then keeps going and does this until time runs out. For reference, the game is like this one: http://www.homestarrunner.com/kinggame.swf

Last edited by luiysia (2011-10-12 17:19:30)


http://i50.tinypic.com/dx00pd.gif

Offline

 

#6 2011-10-09 13:28:53

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: Making a sprite stop temporarily

bump


http://i50.tinypic.com/dx00pd.gif

Offline

 

#7 2011-10-10 15:59:50

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: Making a sprite stop temporarily

bump


http://i50.tinypic.com/dx00pd.gif

Offline

 

#8 2011-10-11 23:55:07

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: Making a sprite stop temporarily

bump


http://i50.tinypic.com/dx00pd.gif

Offline

 

#9 2011-10-17 18:22:33

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: Making a sprite stop temporarily

Um. bump? I still need an answer...


http://i50.tinypic.com/dx00pd.gif

Offline

 

Board footer