Questions tagged [godot4]

for questions regarding usage of the Godot game engine, specifically version 4.0+

Recently, the Godot Game Engine released version 4.0. This major release brought many changes to how things are done in the engine including removing and adding various configuration options, as well as changes to their scripting language, GDScript.

Because version 3.5 is still in use, this tag allows users to specify that their question is about using version 4.0.

130 questions
-1
votes
0 answers

How to make some meshes covering UI?

One of the mechanics in my game needs to make some meshes cover UI. Mb layers will help or not.
-1
votes
1 answer

How to move 2D Node to given coordinates in Godot 4?

I'm extremely new to Godot 4 and trying to create a basic game where the player has to dodge falling rocks. I'm currently trying to make the rock move back up to top after it hits the bottom (I have an Area2D which sends a signal when the rock…
-1
votes
1 answer

Godot 4 How to do third person 3d movement relative to camera angle

I've created a very simple 3d platformer character to move around a basic level. I've added a springarm with a camera as a child of the Playerbody3D, which is rotated using gamepad controls. But I cant make the player's movement relative to the…
-1
votes
1 answer

How can I impliment a reset on behaviours in my behaviour tree

I have created a simple behaviour tree in godot using nodes, I have created the basic stuff that is needed in a behaviour tree, root, selector, sequence I also have leaf and condition nodes, now the issue I am facing is that when I have two…
Dragon20C
  • 307
  • 2
  • 11
-1
votes
1 answer

What should I do when error says - Identifier "velocity" not declared in the current scope?

func _physics_process(delta): if direction: velocity.x = direction.x * SPEED velocity.y = direction.y * SPEED else: velocity.x = move_toward(velocity.x, 0, SPEED) velocity.y = move_toward(velocity.y, 0,…
-1
votes
1 answer

Hello l want to make a spawner in godot but the sponer didn't want to spawn anything and it show me this massage

Hello l want to make a spawner in godot but the sponer didn't want to spawn anything and it show me this massage. E 0:00:02.270 emit_signal: Error calling method from signal 'timeout': 'Node2D(cloud spowner.gd)::_on_cloud_spowner_timeout': Method…
-2
votes
1 answer

Why jump animation is not working in Godot 4?

I've made controller and it works but jump animation is not working. idk what to do with that. I made jump and walk anims not loop. Pls answer the qustion (Do not write about Vector 3) The problem is only in anims. func _input(event): if…
-3
votes
1 answer

What code should be written for the movement of the sprite in CharacterBody2D if there is already written such code for the joystick:

What code should be written for the movement of the sprite in CharacterBody2D if there is already written such code for the joystick: " @tool extends TouchScreenButton @export_range(0.0,1.0) var inner_opacity : float = 0.9 @export_range(0.0,1.0)…
1 2 3
8
9