gdquest-demos / godot-4-3d-third-person-controller

Godot 4 demo with a plug-and-play 3D Third-Person Shooter (TPS) character controller inspired by games like Ratchet and Clank.
MIT License
710 stars 78 forks source link

Fix input setup function when copying character to different project #21

Closed FelixJons closed 1 year ago

FelixJons commented 1 year ago

Fixed the function that is used to register the required input actions when the character has been copied to a different project. The previous code sent INPUT_ACTIONS[action] as the second argument to action_add_events() , which was read as an int. The new code instead creates a new local InputEvent with the associated Key enum instead.

NathanLovato commented 1 year ago

Thanks much!