Particles? not really sure how to use with destroy.
VolontaArts
Member Posts: 510
Good evening!
so i tried playing with particles. i am not successful as i want the particles to appear when it is destroyed. but instead nothing is happening.
i have 1 rule created. 1 that says when actors collide, destroy. Then when actors collide, particles. so the result is only destroyed. thanks for the help guys
so i tried playing with particles. i am not successful as i want the particles to appear when it is destroyed. but instead nothing is happening.
i have 1 rule created. 1 that says when actors collide, destroy. Then when actors collide, particles. so the result is only destroyed. thanks for the help guys
Comments
Make a global boolean variable called 'hit'.
Let's say your two actors are called 'Missile' and 'Spaceship'.
Constrain the self.X and self.Y variables in the 'Spaceship' actor to new global variables called 'SpaceshipX' and 'SpaceshipY'.
When the two actors collide, change 'hit' to true. change the self.X and self.Y variables of the 'explosion' actor to 'SpaceshipX' and 'SpaceshipY'
Your particles will be in the explosion actor. The rule here will be 'When hit = true' then spawn the particles.
Remember to reset the 'hit' variable to 0 so that it can be flipped on again with a collision.
Experiment with that and see how you do!
QS =
D
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I'd just experiment lots with the particle behaviour. Just make a new project with one actor in the middle of the screen that creates particles.
Then experiment with all the particle settings and see what happens!
It's fun and you'll learn something
Hope that helps,
QS =
D
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
oh i used a random downloaded template btw.... i think it was from @socks
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮