Character will not Move When in different game states (4.5.9)

RMiao

New member
Hey everyone,

I am working on a game and I wanted to assign different controller movement configurations depending on the Game State. When I set up the movement inputs for the "main game" state, everything works fine and the player 1 character / hero will move. When I set up the control figuration for a different game state (such as Game State 7 in this example), while the character can change the direction he is facing, he will not actually move. He is stuck in place and cannot move, though the control pad does change the direction he is facing.

Anyone have any idea what might be going on here? Even when I set up the control scheme to be the same as that in the main game, I still have this problem and cannot get the player to move. I've been playing with this all night to no avail, using version 4.5.9 adventure modual.
 

Attachments

  • IMG20240227225133.jpg
    IMG20240227225133.jpg
    960.8 KB · Views: 3

dale_coop

Moderator
Staff member
Check the Handle Physics script, there is a piece of code that checks the gameStates. You might need to comment out that check to enable the rest of the code for your different gamestates.
 

RMiao

New member
Check the Handle Physics script, there is a piece of code that checks the gameStates. You might need to comment out that check to enable the rest of the code for your different gamestates.
This works! Thank you so much dale_coop for your advice and wisdom!
 
Top Bottom