Godot Version
4.7
Question
What should I learn next? I finished my first code ever with no help and I am wondering what I should practise/learn next? Feel free to give me suggestions! Also, is there any free websites or sources I can use to learn.
Here is my code:
extends CharacterBody3D
const SPEED = 7.5
const GRAVITY = 9.8
const JUMP_VELOCITY = 5
var has_jumped = false
func _ready():
show()
func _physics_process(delta):
if Input.is_action_pressed("move_right"):
velocity.z = -SPEED
elif Input.is_action_pressed("move_left"):
velocity.z = SPEED
else: velocity.z = 0
if Input.is_action_pressed("move_forward"):
velocity.x = -SPEED
elif Input.is_action_pressed("move_backward"):
velocity.x = SPEED
else:
velocity.x = 0
if not is_on_floor():
velocity.y -= GRAVITY * delta
else:
has_jumped = false
if Input.is_action_just_pressed("jump") and not has_jumped:
velocity.y = JUMP_VELOCITY
has_jumped = true
move_and_slide()