Coin animation, How is it done?
KIIVIIN
Member Posts: 159
Well its maybe a stupid question but I wounder how to make actors "explode"?
Lets say you got a block that you hit.. I want it to explode smooth in all different ways.
Is it 8-12 picture animation or is there a function that "explode" an actor?
I found this video as an example when he picks the coins the coin explodes.
By explode I mean like in supermario when you hit a block and it goes in 100 pieces etc..
Maybe thats not the best example but I hope you understand what I mean.
Comments
The coin effect is achieved using particles.
I would look into particles. Probably your best bet for simple explosions.
I use actors. 5 or 6 little circles of same colour. Then spawn them at desired time. Each circle would move out in a different direction. Then destroy the little circles after .8 seconds or whatever you want. Sometimes interpolate alpha to 0 looks nice as well.
You can play with details. But it works for the coin effect.
Sometimes I will cut up the actor in many little pieces. And have those spawned and fly away. Maybe a smoke or fire exolosion animation at same time.
the video is for one of my templates and as mentioned the effect is created using particles.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I will test my way , thank you!
You got any good advice of actors / particles spawning when death is active? I mean so my character explode like in pixel art? Or should I just make actors in different colors as suggested? I already got tons of actors so adding 5-6 more seems bit much for the game, Idk?
@KIIVIIN, my best advice is first figure out what effect you want to achieve and then figure out the best way to do that. IF you want to achieve the same effect you see in my video above the Particle Effect Behavior works perfectly fine for that. However if you want to achieve a different effect, maybe one that looks or acts differently, a different method may be better.
I know there is no direct action in that statement but its often asked "what is the best way to do something" and there is usually not a single BEST way. It depends on the needs of your specific game. If you wanted to see how powerful particles can be I offer a package of prebuilt particle effects and a particle effect editor on my website.
You can certainly create a similar effect with an animation or with spawning your own actors, as I mention it all just depends on what works best for your project.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page