Hi i have a problem with my new game.
This game is created for the gp2x. The game reminds of GTA 1.
On the bad picture, the blue parts is suppose to be the players shoulder, the orange part is the players head and the black part is his gun.
You will steer the player with the arrow keys. It wont mather if you press the "up arrow key" or the "Left arrow key", the animation (exampel .1 ) will still be the same witch will make it look like the player is sidesteping wile pressing the left arrow key. The script for the player to move is the same as on of the basic GE example (x = x - 5; etc...).
To "aim" (exampel .2) you use the 7,8,9,4,5,6,1,2,3 buttons to the right of your table. If you press the number 6 button the animation will change so it looks like the player is looking to the right/aim to the right, if you press number 2 the animation will change so it looks like the player looks down etc.
When you press fire (ctrl) a bullet will be created (the yellow spot) . (Draw actor/script y = y - 5; ).
The problem is just that the bullet always moves the same way because of the script. if the player look to the right the bullet will still fly "up".
A bad alternativ is Key down/ "6" "ctrl" (keys must be pressed in order) script x = x + 5;.
But then i have to press a number everytime before open fire and i cant press fire more than one time before i have to press a number witch make it very hard to control.
Hope you understand. any ideas how to make the player fire at the way he is looking/aiming???
thanks!