Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CharacterBody2D and 3D script templates in GDScript for Redot beginners. #923

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheRealBlackNet
Copy link

added 4 new scripts for starters to begin better in 3D (1x) and 2D (3x)

  • CharacterBody3DFps: Arrow keys for movement and space for jump and double jump detects a Camera3D as child node and uses it to turn the CharacterBody3D
  • CharacterBody2DTopDownTank: implements a tank movement arrowkeys for movement and turning
  • CharacterBody2DJumpAndRun improved version with double jump, arrow keys and space bar for movement (arrow up as jump)
  • CharacterBody2DTopDown 8 direction movement for top down adventure

A look into \redot-engine\editor\editor_settings.cpp line 1725 method "get_script_templates" loads all scripts by folder name and push it into a vector. So the new scripts should load without anymore changes.

Test project:
https://github.com/TheRealBlackNet/ImprovedMovementScripts

- CharacterBody3DFps:
Arrow keys for movement and space for jump and double jump
detects a Camera3D as child node and uses it to turn the CharacterBody3D
- CharacterBody2DTopDownTank:
implements a tank movement arrowkeys for movement and turning
- CharacterBody2DJumpAndRun
improved version with double jump, arrow keys and space bar for movement (arrow up as jump)
- CharacterBody2DTopDown
8 direction movement for top down adventure

A look into \redot-engine\editor\editor_settings.cpp line 1725 method "get_script_templates"
loads all scripts by folder name and push it into a vector.
So the new scripts should load without anymore changes.

Test project:
https://github.com/TheRealBlackNet/ImprovedMovementScripts
@decryptedchaos
Copy link
Member

decryptedchaos commented Jan 13, 2025

I have no objection to this being added, as i think it would ease the entry for new users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants