Particles For Death
In my game, I want it so when you kill an enemy it releases particles upon death for a nice death effect. The problem is that as soon as it dies, the particles vanish because the actor is no longer there. I've tried to make it so the actor makes an invisible actor that creates the particles, but making the actor invisible also makes the particles invisible. Is there a way to use particles upon destroying an actor?
Comments
_______________________________________
Game making service- http://gamesalad.com/forums/topic.php?id=21739
Sketch to vector service- http://gamesalad.com/forums/topic.php?id=21820
"Power Orb" Style template- http://gamesalad.com/forums/topic.php?id=22179
When player dies, just before destroying, spawn blank actor
Blank actor is set to be invisible
Blank actor has a particle behaviour to do what you want
Destroy blank actor when done
Note that a lot of spawn and destroy can affect the performance of your game
I am now trying to see if using an invisible image will work.
Only I have a new problem. It's supposed to be a short burst of particles, but it seems to make only 4 of the 8 particles at the start and then it continually spams particles a second later. Not sure what's causing it.
How am I supposed to set this up to create a short burst of particles?
I apologize to all of the questions. I am fairly new to GS, though I have Drag & Drop game making experience.
EDIT: Something like this is what I'm trying to do:
Make it say for 1 (or whatever) seconds, Particles.
Objective: Make a short burst, like the bursts in the video above when the ball hits the bricks.
Current Settings:
Number of Particles: 8
Particle Startup Time: 0
Particle Lifetime: 1
Direction: random(0,359)
Speed: random(150,300)
Current Effect: Several particles fly off in one direction at the start of the explosion, then particles suddenly fly everywhere until the actor is destroyed.
Speed: random(150,300)"
The funny thing is that it used to work properly before I implemented the transparent image.
http://www.mediafire.com/?xk68drveibkm99v
touch the actor to start the particles, let me know if thats not what your trying to do
I'll go ahead and look at what you did.
Thanks dude - that helped me out a bit as well
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io