3D Game Programming – Episode 12 – User Input

Episode 11: www.youtube.com Welcome to a series of videos where we will create a 3D game (probably a first person shooter) from scratch, using just the included libraries in Java 1.6. If you have any questions or problems, leave a comment or send me a message, or tweet at me. In this tutorial: How to add user input/controls. Tell me if you want more! Twitter: twitter.com Facebook: facebook.com Livestream: www.twitch.tv

This entry was posted in Programming and tagged , , , , . Bookmark the permalink.

11 Responses to 3D Game Programming – Episode 12 – User Input

  1. TheMcDucky says:

    That is because you move your camera position along the global z axis. You’ll have to move it along a local z axis to the camera.

  2. LifeUpGaming says:

    Update: The game doesn’t freak out it just rotates and makes it look like the squares are turning into diamonds but once I rotate 180 degrees I press w and its like i’m pushing s, and clearly in the video that doesn’t happen. Been stuck for awhile PLZ HELP!

  3. Joe Chickenburger says:

    when i turn 90 degrees, left or right.. and move to the left/right it goes to opposite direction.. so i turn left… move right and it moves left.. please help!!!!!

  4. LifeUpGaming says:

    My game does not move the way his does at the end. When i turn it freaks out and when i turn 180 degrees from original i seem to move backwards. Anyone know the problem?

  5. Lorraine Figueroa says:

    If the keys don’t work. Make sure you give the application focus by clicking on the window with the mouse and then use the keys.

  6. Michael Tang says:

    the keys wont work for me, can someone help.

  7. BloodBlizzard80 says:

    Update: I got SOME movement working, but here’s the thing: I have to click on the screen , then press W and then it just goes infinitely forward on its own. ?

  8. BloodBlizzard80 says:

    Can someone help me? I fixed my nullPointerException and the floor and ceiling render and all, but i have no movement. Help?

  9. personthingman2 says:

    yea, I like the long episodes!

  10. SergeantBalthazar says:

    For some reason my rotation and movement keys don’t work at the same time. One takes precedence over the other when they are both pressed at the same time, and I’m not sure why. Does anyone know how to solve this?

  11. Manthan Mallikarjun says:

    Hey, Yan did you do anything with the ceiling cause i didnt have that code…

Leave a Reply