Fix README

This commit is contained in:
2023-12-19 18:30:25 -08:00
parent dea71a2323
commit 241a48e642

View File

@ -23,14 +23,15 @@ If you make a cool game with this addon, I would love to hear about it!
# Wiki # Wiki
**To start out**, you should probably remap all of the movement keys to your own control set. **To start out**, you should probably remap all of the movement keys to your own control set.
You can make this a super basic controller by just disabling everything. You can make this a super basic controller by just disabling everything.
**How to change settings:** **How to change settings:**
**How to change settings:**
Click on the character node and there should be settings in the "Feature Settings" group. Click on the character node and there should be settings in the "Feature Settings" group.
**How to add animations for a mesh:** **How to add animations for a mesh:**
In the `_physics_process` function, add a line to check whether you are walking or aren't walking. You can do this by checking whether `input_dir` is true or false. Optionally, set the animation speed to `speed / base_speed`. This will make it so when the player is walking, your animation speed is 1. If the player is sprinting, your animation goes up and if the player is crouching your animation speed goes down. In the `_physics_process` function, add a line to check whether you are walking or aren't walking. You can do this by checking whether `input_dir` is true or false. Optionally, set the animation speed to `speed / base_speed`. This will make it so when the player is walking, your animation speed is 1. If the player is sprinting, your animation goes up and if the player is crouching your animation speed goes down.
In the `toggle_sprint` function, add a line at the end where if `is_sprinting` is true, your animation is set to sprint. In the `toggle_sprint` function, add a line at the end where if `is_sprinting` is true, your animation is set to sprint.