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!!!!!!!
Offline
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!!!!!!!
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
Offline
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!!!!!!!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!
Offline
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!!!!!!!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.
Offline
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)
Offline
ok thanks people! Requesting to be closed.
Offline
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!!!!!!!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!
Offline