Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

what godot verison are you on?

4.7 why? is the version important?

(+1)

Im not good at giving info clearly. But, heres my answer. Kinda. Bcuz their programming language changes so example, a tutorial for Godot 3.x might be outdated for Godot 4.x (4.7 is part of 4.x,). I would recommend you try to experiment with code, but I can give you a basic knowledge of basic things, like if you want your 2D character to move, for example, to move right, you can put in a script something like this:

#I used Godot 3.x for this
extends KinematicBody2D
#var = variable if you are unaware.
var speed = 50
var velocity = Vector2()
func _physics_process(delta):
#this makes it not move if not doing anything.
    velocity.x = 0
    var input_vec = Vector2.ZERO
#this checks the input. Add other inputs for other movement
    if Input.is_action_pressed("move_right"):
        input_vec.x += 1
#this helps it move.
    if input_vec != Vector2.ZERO:
        input_vec = input_vec.normalized()
        velocity.x = input_vec.x * speed
#this makes it move.
    velocity = move_and_slide(velocity, Vector2.UP)

So I use 4.x? 

Yes 4.x is any version of godot 4, same with the others.