I am making a kind of platform fighting game with two caracters jumping round on the screen… firing bullets at each other.
I have coded movement, and falling, and platform hittests… etc. But need help with a few things (me being a complete noob, lol)
firstly… I have keys to control both characters, but at the moment they can only be arrow keys etc. My game is 2 player, so I want to use the wsad setup for one of the players… is this possible? example of my current code for movement…
if (Key.isDown(Key.RIGHT)) {
this.gotoAndStop(2);
_x -= speed;
}
Also I have the dudes firing bullets, of which i got the code from the tutorial on this site. I changed it so they fire on the x plane, from left to right, and dissapear at the edge of the screen. What I want is for the bullets to fire left if I am facing left, and fire right if I am facing right. but at the moment they always fire right.
Can anyone help me out.
thanks in advance
sam