Jump to content


Photo

Movement in First person shooter


  • Please log in to reply
3 replies to this topic

#1 krpouncy

krpouncy

    GMC Member

  • GMC Member
  • 33 posts
  • Version:GM8

Posted 22 September 2012 - 09:06 PM

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.
  • 0

#2 Noele

Noele

    GMC Mentor

  • GMC Member
  • 2360 posts
  • Version:GM8.1

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.
  • 0

#3 krpouncy

krpouncy

    GMC Member

  • GMC Member
  • 33 posts
  • Version:GM8

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?
  • 0

#4 Noele

Noele

    GMC Mentor

  • GMC Member
  • 2360 posts
  • Version:GM8.1

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.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users