Hi, I've been trying to make sprites which move around the game have an effect of an explosion come up when the player clicks them and they respawn, but I can't do this with a costume change on the clicked sprite because backgrounds pre define the costume of the clicked sprite. I tried using a sprite just for the effect, but I can't figure out how to get it to appear as I want it.
Offline
Using a sprite for effect will work. Label a new sprite with "Explosion" or whatever, and put you effect in there.
Now then, when the moving sprite ("Sprite 1") is clicked, put this script:
<when[ Sprite 1 ]clicked>
<hide>
<broadcast[ Explosion ]and wait c>
<end>
Then, on the "Explosion" sprite use the <when I receive[Explosion] block to add your explsion. Be sure to make it go to "Sprite1"!
Once the explosion is over, simply use the show block when it is back at the respawn point, and that should work.
I hope this helps.
Last edited by TheSaint (2010-11-23 16:26:58)
Offline
Worked, thanks
Offline
Offline