Animation issue...

I have an actor which moves all over the screen and is constantly animated while moving around. This actor also disappears once you touch it.
Problem:
I can't add an animation effect to this actor so when you touch it, there is like an explosion effect while it disappears. I've added the animation behavior but it just disappears without the animation. Perhaps the "destroy" behavior is the issue because once you touch this actor, it disappears, or?
Any help is appreciated.
Thanks.
Problem:
I can't add an animation effect to this actor so when you touch it, there is like an explosion effect while it disappears. I've added the animation behavior but it just disappears without the animation. Perhaps the "destroy" behavior is the issue because once you touch this actor, it disappears, or?
Any help is appreciated.
Thanks.
Comments
Have it so when actor is pressed, it plays the explosion animation and then after a timer (for however long your explosion is' then destroy the actor.
Hope that makes sense and is what you were after.
Good luck,...
Just tried that, doesn't work, hrmm...
Still not very familiar with interpolate so not quite sure what you mean, but I'll have a look at some tuts on using this behavior and see if I can give it a go.
Thanks for the tip.
But the other way is simpler to understand if your just getting into it.
But to interpolate.
It would be :
Play normal animation
If touch is pressed
Play explosion animation
And interpolate self alpha to 0
Duration 1 second (or what ever time you prefer)
You could always have the interpolate behaviour inside a timer so it does not start till after a set amount of time.
rule when destroy is false, animate (move anamation)
otherwise, animate (destroy anamation)
this will work
then just have a rule when touch is pressed
change attribute self.destroy to true
timer
after xxxtime destory actor
i used this on my game blaster bugs and works well as i was having problems
jason