Skip to content

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.

@rhbollinger1s
Copy link

We could instead have a library of templates?

@TheRealBlackNet
Copy link
Author

@rhbollinger1s
A template library is a great idea too, but this is just a change on the default scripts for a node type in the editor.
The current one giving a very basic 2d template in the moment even you select a 3d game without any camera movement.

Would love like C#\XNA Visial Studio did back in 2000-2010 to have a "New Project by Template..." then you were able to select some little templates (Shooter\Jump and Run\Cardgame). I support everything that will help beignners to get into development.

@rhbollinger1s
Copy link

I don't know why this has not been approved yet. I used to be in the staff discord on my old account, but then I removed everything linked to Microsoft, but if I did, I would try and push for it there.

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.

5 participants