animated explosion when ennemy is destroyed ?

hi to all,
iam facing about some problems depending animated explosion when ennmy is destroyed
for example

ennemy
animation
rule
when collosion with thing
destroy

i try :
when collosion with thing
timers 2 destroyed
timers 4 animated

but not success ...

i just want that my ennemy destroyed and the animation (3 or 4 pictures) play for 3 secondes after the destroy ...(and after nothing)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Try this:

    Enemy actor
    When collide with [thing actor]
         Spawn actor [explosion]
         Destroy actor

    Explosion actor
         Animate behavior
         Timer after x* seconds
              Destroy actor

    *If you animate behavior is 1.4 seconds long, then you'd want the timer to last that long or slightly longer, for example.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • YES IT WORK
    and its exactly what i want ... and usefull for a lot of ennemy
Sign In or Register to comment.