Switching animations triggered by actor collisions

Danfisher

  • Posts: 36
Hi Guys,

HI All,

Please let me know if this is wrong place to post this...

I'm trying to get my "gnome" character (actor) to switch to an "exploding" animation and then disappear whenever the player actor bumps into him.  Right now they just collide but no animation is triggered.  I've attached a screen shot of my code.  Suggestions or links to tutorials on this are appreciated!


rambunctious10

  • Posts: 58
Try removing the 'exploding' part and type in the name of your exploding animation. Also, it looks like you are killing your gnome at the same time as the animation. Try using a 'do after __ seconds' if you want it to show the animation and have the gnome killed.

« Last Edit: April 25, 2015, 11:49:22 am by rambunctious10 »
I ♥ coding.

Danfisher

  • Posts: 36
Awesome advice.  That worked perfectly.  Any idea why a single collision with a "gnome" actor kills all of them?

Bhoopalan

  • Posts: 1018
I think all Gnome is killed because you use it inside the actor?

Try this, drag '2nd actor' and put it into 'self'. Let's know if that works.
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

rambunctious10

  • Posts: 58
I think all Gnome is killed because you use it inside the actor?

Try this, drag '2nd actor' and put it into 'self'. Let's know if that works.

Yeah. That should work.
I ♥ coding.