This project contains the example scenes and assets used in the Xogot 3D Modular Series - Player Controls tutorial by Erin Uptegrove.
It demonstrates how to set up basic 3D player movement in Xogot - the iPad and iPhone port of the Godot Engine - using the virtual controller, custom input actions, a CharacterBody3D movement script, and exported variables for tuning movement settings.
The project shows how to create a simple controllable 3D player that can move, strafe, and jump, then adjust movement values while the game is running.
- Enable Xogot’s Virtual Controller
- Choose which onscreen controls to display
- Create a player movement script from the built-in Basic Movement template
- Understand the default CharacterBody3D movement script
- Use
_physics_process()for smooth physics-based movement - Handle gravity and jumping
- Read player movement from input actions
- Use
move_and_slide()to move the player - Create custom actions in the Input Map
- Add keyboard inputs such as W, A, S, and D
- Add joypad axis inputs for the left stick
- Use clear action names such as
move_forward,move_backward,move_left, andmove_right - Update the movement script to use custom input actions
- Check the player’s facing direction and movement orientation
- Adjust the player collider
- Convert movement constants into exported variables
- Tune speed and jump velocity from the Inspector
- Use Remote view to adjust values while the game is running
This project focuses on introductory 3D player control workflows in Xogot, not advanced character controllers, camera-relative movement, combat controls, or full gameplay systems.
Key ideas demonstrated include:
- The virtual controller can be used to test touch-friendly controls directly in Xogot
- Input actions let a script respond to many input types without rewriting movement code
- Custom action names make scripts easier to understand and maintain
- Keyboard, controller, and virtual joystick inputs can all map to the same actions
- Player movement depends on the direction the character is facing
- Exported variables make it easy to tune gameplay values from the Inspector
- Remote view can be used to adjust values while previewing the running game
Watch the full walkthrough on the Xogot YouTube Channel: Introduction to Player Controls in Xogot - Game Development in Godot on iPad
-
Download or clone this repository:
git clone https://github.com/xogot-projects/Xogot-Controls.git
-
Open the project in Xogot on iPad or iPhone.
-
Explore the example scene and player setup.
-
Open the Project Settings and review the virtual controller and Input Map configuration.
-
Preview the project and test moving, strafing, and jumping.
-
Select the player in Remote view and experiment with movement values such as speed and jump velocity.
-
Review the player script to see how the input actions drive CharacterBody3D movement.
Built with Xogot on iPad