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

#1 2013-01-19 15:43:05

lisafireball
Scratcher
Registered: 2012-12-20
Posts: 61

Help Me!!!

I'm making a game and I want it like this,

If sprite 7 is touching sprite 5 make sprite 5 switch to next costume.

BUT I DON'T KNOW HOW TO DO THAT!!! HELP ME!!!!!!!  yikes


http://i43.tinypic.com/359h9wn.gif

Offline

 

#2 2013-01-19 16:18:54

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Help Me!!!

lisafireball wrote:

I'm making a game and I want it like this,

If sprite 7 is touching sprite 5 make sprite 5 switch to next costume.

BUT I DON'T KNOW HOW TO DO THAT!!! HELP ME!!!!!!!  yikes

Okay, this is simple. Just use this script in Sprite5:

when gf clicked
forever
 if (touching [Sprite7 v]?)
  next costume
  wait until <not (touching [Sprite7 v]?)>
 end

I hope that this helps!


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2013-01-19 16:20:13

lisafireball
Scratcher
Registered: 2012-12-20
Posts: 61

Re: Help Me!!!

ErnieParke wrote:

lisafireball wrote:

I'm making a game and I want it like this,

If sprite 7 is touching sprite 5 make sprite 5 switch to next costume.

BUT I DON'T KNOW HOW TO DO THAT!!! HELP ME!!!!!!!  yikes

Okay, this is simple. Just use this script in Sprite5:

when gf clicked
forever
 if (touching [Sprite7 v]?)
  next costume
  wait until <not (touching [Sprite7 v]?)>
 end

I hope that this helps!

Oh thanks your a life saver!


http://i43.tinypic.com/359h9wn.gif

Offline

 

#4 2013-01-19 16:35:29

lisafireball
Scratcher
Registered: 2012-12-20
Posts: 61

Re: Help Me!!!

lisafireball wrote:

ErnieParke wrote:

lisafireball wrote:

I'm making a game and I want it like this,

If sprite 7 is touching sprite 5 make sprite 5 switch to next costume.

BUT I DON'T KNOW HOW TO DO THAT!!! HELP ME!!!!!!!  yikes

Okay, this is simple. Just use this script in Sprite5:

when gf clicked
forever
 if (touching [Sprite7 v]?)
  next costume
  wait until <not (touching [Sprite7 v]?)>
 end

I hope that this helps!

Oh thanks your a life saver!

but is there a way to not use the forever block?
because I only want the sprite 7 to switch to the next costume once.


http://i43.tinypic.com/359h9wn.gif

Offline

 

#5 2013-01-19 16:39:01

lisafireball
Scratcher
Registered: 2012-12-20
Posts: 61

Re: Help Me!!!

lisafireball wrote:

lisafireball wrote:

ErnieParke wrote:


Okay, this is simple. Just use this script in Sprite5:

when gf clicked
forever
 if (touching [Sprite7 v]?)
  next costume
  wait until <not (touching [Sprite7 v]?)>
 end

I hope that this helps!

Oh thanks your a life saver!

but is there a way to not use the forever block?
because I only want the sprite 7 to switch to the next costume once.

oops nevermind I know how now! (sorry I keep talking to you)


http://i43.tinypic.com/359h9wn.gif

Offline

 

#6 2013-01-19 16:42:07

QisEpic
New Scratcher
Registered: 2013-01-19
Posts: 6

Re: Help Me!!!

Using the forever block will not make it change costumes forever, because of wait until.

Offline

 

#7 2013-01-19 16:52:48

lisafireball
Scratcher
Registered: 2012-12-20
Posts: 61

Re: Help Me!!!

ok thanks people!     Requesting to be closed.


http://i43.tinypic.com/359h9wn.gif

Offline

 

#8 2013-01-19 17:54:42

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Help Me!!!

lisafireball wrote:

ErnieParke wrote:

lisafireball wrote:

I'm making a game and I want it like this,

If sprite 7 is touching sprite 5 make sprite 5 switch to next costume.

BUT I DON'T KNOW HOW TO DO THAT!!! HELP ME!!!!!!!  yikes

Okay, this is simple. Just use this script in Sprite5:

when gf clicked
forever
 if (touching [Sprite7 v]?)
  next costume
  wait until <not (touching [Sprite7 v]?)>
 end

I hope that this helps!

Oh thanks your a life saver!

Your welcome! Also, hello lisafireball and welcome to Scratch! I wish you many great moments here!


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer