What code do I use when I was to shift to the right instead of turn? I want to still look straight and move right.
Movement in First person shooter
Started by krpouncy, Sep 22 2012 09:06 PM
3 replies to this topic
#1
Posted 22 September 2012 - 09:06 PM
#2
Posted 22 September 2012 - 09:11 PM
You just need to move the camera / player to the right by decreasing its x.
x -= 4; // moves it 4 pixels to the right
You might want to check it can move there first though or it might get stuck or go out of the game view.
x -= 4; // moves it 4 pixels to the right
You might want to check it can move there first though or it might get stuck or go out of the game view.
#3
Posted 22 September 2012 - 09:16 PM
wow! Thanks so much It works! I have another question: how do you import a d3d gun to replace the sprite on the tutorial fps?
#4
Posted 22 September 2012 - 10:10 PM
From memory isn't that just an ordinary animated sprite?
If so - just change the sprite for you own images.
If so - just change the sprite for you own images.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











