My controls change when I rotate my player in my 3D game

About Monkey 2 Forums Monkey 2 Programming Help My controls change when I rotate my player in my 3D game

This topic contains 0 replies, has 1 voice, and was last updated by   En929 7 hours, 16 minutes ago.

Viewing 1 post (of 1 total)

  • Author
    Posts
  • #15958


    En929

    Participant

    In my 3D game, I am having problems with my rotation. When I first start the game, the player goes Forward (Z), Backwards (Z); it rotates to the Right(Y) and rotates the Left (Y) normally. However, when I rotate my player 90 degrees. After that, when I press the up button, the up button starts acting like the Right button, etc.  and all of the controls change and they change in every 90 degrees in which my player is rotated. Thus, what do I add to my code to get the controls to go in the way that the player is facing. My code is below. Thanks:

     

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.