Can anyone help me? I'm trying to make a sprite die. How do I do this?
Offline
What do you mean?
Just make it turn 90 degrees right.
Offline
You might have it set up to respond to a Broadcast message and have it change to a "dead" costume.
when I receive [Sprite Dies v] switch to costume [Dead v] turn cw (90) degreesYou might also have to find a way to stop any motion that the sprite might be doing. That can be hard...there's no way to interrupt a Glide block that I have found. But if you have motion set up with a Repeat block of some sort, you might set a variable that stops that loop.
Offline
Quite simple, really.
If you want it to flicker and then disappear:
when gf clicked show wait until <(lives)=[0]> repeat (10) hide wait (0.1) secs show wait (0.1) secs end hideIf you want it to fall down:
when gf clicked show point in direction (90) switch to costume [Alive v] wait until <(lives)=[0]> turn cw (90) degrees switch to costume [Dead v]
Offline
I am making a asteroid dodge game. how can a sprite die by color? this is what I tried but didn't work. if touching color brown, switch to costume 2 [dead].
Offline
I need help,fast!
Offline
:[ :\ :] ;[ ;\ ;| ;/ ;]
Offline
thornshadow111 wrote:
I am making a asteroid dodge game. how can a sprite die by color? this is what I tried but didn't work. if touching color brown, switch to costume 2 [dead].
Fixed your code:
if (touching color [brown]?) switch to costume [Dead v] endAnyway, is there some way you could give me a copy of your project to look at, or some of the scripts other than what you've said so far? It would be very helpful if you did because I can't draw any conclusions from what your just telling me. Sorry.
Last edited by ErnieParke (2012-08-02 20:09:44)
Offline
If you want it to dissapear:
hideis a good block.
Offline
when[Sprite Dies v] switch to costume [Dead v] turn cw (90) degrees hide
Last edited by maxamillion321 (2012-08-03 17:33:36)
Offline
thornshadow111 wrote:
I am making a asteroid dodge game. how can a sprite die by color? this is what I tried but didn't work. if touching color brown, switch to costume 2 [dead].
Did you snap a forever block around it?
Offline
thornshadow111 wrote:
:[ :\ :] ;[ ;\ ;| ;/ ;]
Please refrain from spamming un-needed smilies. It clutters up the topic.
Last edited by CylonToast (2012-08-04 19:27:10)
Offline