Basically it's a top-down shooter (as in, controlling a character, picking up weapons, shooting stuff)
I have my character sprite in several different variants.. There's an "idle" sprite for when the character is stood still, a standing-and-shooting sprite, and a running-and-shooting sprite. Thanks to some internet tutorials and such I successfully made my character able to move around and fire his weapon. Here's what I have so far:
http://i46.tinypic.com/28va9zm.jpg
But I want the sprites to switch around as he does different actions, and I can't figure that out. So my questions are a little complicated, (sorry):
1. How do I make the sprite change to running-and-shooting when I press the WASD keys to move him around but still press the Left Mouse at the same time?
2. How do I make it revert back to the stand-and-shoot sprite if I stop moving but still press Left Mouse?
3. How do I make it revert back to the "idle" sprite if I stop moving AND stop shooting?
and I have one more unrelated question
4. The first weapon will be an SMG (sub-machine gun) so I obviously want my bullet object to repeat very quickly and the firing sound to repeat with it. How do I make this happen?
any help will be greatly appreciated
Edited by Pix1, 03 May 2012 - 05:02 PM.











