I need help making so I can click on sprites, and the sprite that I clicked on will trigger another sprite to come towards it so I can make the sprite that touches it, cause the sprite that I clicked on to explode, and then restart again. please help.
Offline
cord_thundertree wrote:
I need help making so I can click on sprites, and the sprite that I clicked on will trigger another sprite to come towards it so I can make the sprite that touches it, cause the sprite that I clicked on to explode, and then restart again. please help.
YOu can do this:
First, let's say that you clicked on a sprite:
Then for the other sprite:whensprite1clickedwhen that sprite is clickedbroadcastout ▼send a message telling the others to appearforeveriftouching sprite 2switch to costumeexplosionswitches to explosion costumewait1secshidedisappearswait1secs
when I receiveout ▼showrepeat1ifdistance tosprite 210if the distance is more than tenpoint towardssprite 1 ▼point towards spritemove5stepsmove 5 steps toward that sprite
Last edited by joshuaho (2013-05-04 13:58:05)
Offline
joshuaho wrote:
cord_thundertree wrote:
I need help making so I can click on sprites, and the sprite that I clicked on will trigger another sprite to come towards it so I can make the sprite that touches it, cause the sprite that I clicked on to explode, and then restart again. please help.
You can do this:
First, let's say that you clicked on a sprite:Then for the other sprite:whensprite1clickedwhen that sprite is clickedbroadcastout ▼send a message telling the others to appearforeveriftouchingsprite 2 ▼?switch to costumeexplosionswitches to explosion costumewait1secshidedisappearswait1secsWhen I receiveout ▼showrepeat1ifdistance to>sprite 2 ▼10if the distance is more than tenpoint towardssprite 1 ▼point towards spritemove5stepsmove 5 steps toward that sprite
Fixed
With respects,
~7734f
Last edited by 7734f (2013-05-04 14:26:27)
Offline