I have got a simple game running on android - I have a character drawn in Paint.NET and some zombies as well. Here is a screenshot:
As you can see, there are two "thumb pads" which I use to control the character - left one is for moving and the right one is for rotating and shooting.
So far, I have implemented only a gun for the player to shoot with. However, I'd also like to add a flamethrower. I remembered that the flamethrower in GTA2 looked fluid and decided to try and copy it. For those of you who do not know how the flamethrower in GTA2 works here is a 33 second video video:
I really like the fluidity of the flames and how they bend, for example at 0:27 when the player starts rotating.
My initial idea was to create a simple fire sprite (16x16) which I spawn from the top of the gun of the player and move in the appropriate direction. However, I could not achieve the fluidity I wanted.
This leads to my question - does someone know how I can replicate the flamethrower from GTA2? What information I would need to store to be able to do all the calculations, etc.
Edited by ShaPe, 12 October 2013 - 11:15 AM.