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
0
votes
1 answer

Area2D inconsistent behaviour - Not functioning in main game scene, but functions fine independently

I was trying to make a set of Area2Ds that would display a value when the mouse is hovering over them. They're children of a control node (technically children of buttons in that node, the exact order is Control > Panel > Panel > Vbox > Hbox >…
0
votes
1 answer

Dynamic window resizing

I have created a setting item on the main screen in Godot 4, but I want to create a setting item to change the screen size in the settings, and I am having trouble getting it to work, even after looking at references and such. What I was hoping to…
Locu
  • 25
  • 4
0
votes
0 answers

How to limit linear velocity in Godot rigid bodies?

I use apply_central_force in a top-down 2D car game to move a car. I had to limit the linear velocity separately in _integrate_forces and that causes a bouncing or elasticity when hitting a wall. Any ideas if there's something better to do? Would…
Hydroper
  • 344
  • 2
  • 9
0
votes
1 answer

Config file in godot not udpating the section

I am using the ConfigFile to save all the game related data into the user system. There are two methods, one for saving the data and other one for getting the data. Function to save the data: func _set_data(filename: String, section: String, field:…
0
votes
0 answers

RigidBody2D's body_entered() signal doesn't work | Godot 4

Goal I'm trying to create a 2D horizontal space shooter in Godot. I've used a CharacterBody2D node for the player, a RigidBody2D node for the asteroids that the player has to dodge and a plain Node for the main scene. My goal is to lower the…
feather
  • 1
  • 1
0
votes
2 answers

Godot 4.1 keeps crashing on starting up editor with this error message

I am coding a project in Godot 4.1, and I get tired so I close the editor. I come back the next day, and after opening the editor, this error pops up: Blend file import is enabled in the project settings, but no Blender path is configured in the…
100k7gm
  • 25
  • 4
0
votes
1 answer

Quick question about Godot 4 exporting a set variable

I am just starting out Godot and I need a little help with some platforming code written in Godot 4 How do I set a default value to this -> @export var speed:int: set = set_speed The language being used in the code is gdscript
100k7gm
  • 25
  • 4
0
votes
1 answer

Dynamic Properties Menu in Godot 4

I'm trying to create a dynamic GUI menu in Godot 4.1.1, where when an object is selected it's properties can be seen in the GUI. So far, I have this working for un-editable fields - however there are also properties that will need to be…
AdmiralJonB
  • 2,038
  • 3
  • 23
  • 27
0
votes
1 answer

How to edit all text labels of a grid in Godot

I have been working on a grid based game, similar to wordle, that will change the label of each grid space to be equal to user input. I figured out how to change a label based on user input, but I am not sure how I can set all labels to be null on…
0
votes
1 answer

Is there an advanced way to structure IF statements in Godot 4? Using GDscript?

I am working on a tile map (of my own code). Each hexagon has an Dictionary that holds its individual data. I need to check to see if each tile meets some conditions... if (hex["neighbors_index"]["North_index"] != null &&…
0
votes
0 answers

Pass TextureFilter as shader parameter

I wrote a shader to apply patterns to objects, for colorblind users. The pattern is passed in as a shader parameter, currently with a linear filter: uniform sampler2D pattern : filter_linear; The same shader is applied to pixelated and smooth…
4444
  • 3,541
  • 10
  • 32
  • 43
0
votes
0 answers

Godot 4.1 Spatial Shaders : Possible to change projection direction of texture?

I am trying to apply a 2D texture to a 3D sphere. To do this, I create a Surface Material Override with a StandardMaterial3D, then plug the texture into the albedo. The problem is that the projection only seems to come from the negative z…
0
votes
1 answer

I need help "translating" this code from Godot 3 to Godot 4

I need to use this script written in godot 3 to work in godot 4 language is gdscript extends Path2D enum ANIMATION_TYPE { LOOP, BOUNCE, } export(ANIMATION_TYPE) var animation_type onready var animationPlayer: = $AnimationPlayer func…
100k7gm
  • 25
  • 4
0
votes
1 answer

How to connect a list of button signals ? - Godot 4.1.1

I want to connect the pressed signal of 9 buttons by code but since the .connect method doesn’t use a string argument (which I could easily modify in my loop) I don’t know how to connect each of them. I want to do something like this: for i in…
0
votes
1 answer

How to get the 3D mouse pos in godot 4.1?

How do I get the 3D mouse position in godot 4.1? Every thing ive tried dosent work and all the YT toutorials don't work! I've tried to use documentation and YT toutorials. And i expected it to work!!! I think its a problem with intersect_ray()…
1 2 3
8 9