2,411 questions
0
votes
1
answer
80
views
How to fix "Invalid access to property or key" (Gdscript 4.5.1)
Trying to write the camera movement for a 3d character, it's my first project. Just a basic psx shooter. so i wanted to make the camera followed along with the cursor.
I can't seem to fix the error ...
-1
votes
0
answers
24
views
Google Cloud Run does not load WASM with 500 aborted error [closed]
I am trying to deploy my Godot game, in docker to google cloud run, but even after isolating the issue, the wasm fails to load.
It works on itch.io and locally. How can I get the wasm to load?
0
votes
0
answers
51
views
Godot not printing to output console. Fresh install of godot 4.5x
In godot, I couldn't print to output panel. Everything seems to be okay, I made a root node called Main and attached main.gd script with
extends Node
const packets := preload("res://packets.gd&...
1
vote
1
answer
54
views
How to reset sequence playback index in Godot AudioStreamRandomizer
I am using an AudioStreamRandomizer with playback mode = Sequential to play a few dozen sound files. When I play the audio stream, I get the next sound in the sequence, but the starting index is ...
0
votes
1
answer
89
views
How do I add more enemies in my Godot project?
I'm working on my school project about my first top down shooting game. Anyway after I did my project by following a tutorial from youtube I desire to add more enemies. But I've no idea how to do it?
...
0
votes
0
answers
57
views
RenderingServer cannot access global shader params
in Godot 4.4.1 I'm trying to access shader variables in code to do some math for my game. However, Even though I have set these shader parameters in global/shaders in project settings they don't show....
0
votes
0
answers
43
views
Godot apksigner error - all 'apksigner' tools failed to execute
When exporting the project to Godot 4.2.2 for Android, I encountered the error: [Code signing] All 'apksigner' tools located in the Android SDK 'build-tools' directory failed to execute. Please check ...
1
vote
0
answers
70
views
Type hint for a class type in Godot / GD Script
I'm trying to check if an object adheres to certain restrictions by checking its type against a given check_type variable. This variable is set dynamically, so I cannot check against a fixed class ...
1
vote
1
answer
114
views
How can I optimize my C# code for capturing a window to use as a texture in Godot?
Cobbling together code from various sources online I was able to create the following function that allows me to capture an image of a window on my desktop (Using Windows 11). I'm attempting to use ...
0
votes
0
answers
79
views
GODOT Pixel font has extra pixel of spacing
I am making a pixel mobile game, and using a 3x5 pixel font. But Godot is adding a pixel of spacing around and I cant figure out why. Is this something to do with the font, or is there a Godot setting ...
1
vote
2
answers
66
views
Issues with sequential cooldown
I've been attempting to make a system in which you can use an ability with 3 charges. Once you use one, Only that one will recharge, When you use another, The recharge progress from the first will go ...
0
votes
1
answer
83
views
Issue when rotating around multiple axes
I am trying to replicate how the Hadamard gate works. I have a system consisting of a sphere with a cylinder attached, and I would like to rotate the whole system by 90 degrees around X and then by ...
1
vote
1
answer
112
views
Why does comparing array.size() with a const return an Object, not a bool?
So I’m running into an issue while implementing an ‘undo’ mechanic in Godot Engine v4.4.1 using GDScript. I’m trying to limit the size of the undo queue, and cut off the end once it exceeds the limit.
...
0
votes
1
answer
58
views
Godot inherited scene does not have script variables in editor
I'm new to Godot so I'm sure I did something wrong but I can't figure out what it could be. I created a scene "piece" and then I created 8 scenes which all inherit from piece. These are ...
2
votes
1
answer
134
views
Instancing in Godot
How big is the difference between instancing a scene with c# compared to GDScript? I noticed on the docs that it does say that when instancing a scene "Preloading the scene can improve the user's ...
1
vote
1
answer
44
views
Trouble detecting whether a line segment intersects a ray
I'm following this guide to determine whether a line segment intersects a ray. My code, adapted from the python solution on that page, looks like this:
func do_lines_intersect(line: Array[Vector2], ...
0
votes
0
answers
58
views
'Nephew' node null in 'Uncle' node's export variable despite being assigned in inspector
My Player scene has a StateMachine node governing its behavior, with Idle, Move, Fall nodes as children under StateMachine. Another node, FallDownPit, listens for a signal telling it the player has ...
1
vote
1
answer
89
views
Godot 4.4.1 C# Error 'no suitable method found to override'
In Godot, I get the error 'no suitable method found to override' for the default _Ready() function.
using Godot;
using System;
public class Box
{
public enum BoxType
{
//HURT_BOX,
...
0
votes
2
answers
63
views
When I use pick_random on my array, how can I prevent picking the same element twice?
I'm working in something on godot engine 4. I create code to spawn objects in different parts of the screen. But I try to prevent to generate items in the same coordinates twice.
How I can do it?
...
0
votes
0
answers
78
views
GitHub Actions unexpected parse error when running Godot workflow
I am building a workflow using GitHub actions to automate test runs for my current Godot project. I have written two independent actions and one workflow which references them. Of these two actions - ...
0
votes
1
answer
51
views
How do i get a characterbody3d to change their node path to another characterbody3d?
I am making a 3d multi-player horror game. My monster(characterbody3d) is using pathfinding to go to a certain area in the map. It does this by having an exported variable.
@export var player_path: ...
1
vote
1
answer
49
views
Is there a problem with calculating triangle area using two vectors instead of three points?
I looked up calculating the area of triangle given three vertices.
func calculate_area_of_triangle(a: Vector2, b: Vector2, c: Vector2) -> float:
return abs((a.x * (b.y - c.y) + b.x * (c.y - a.y)...
0
votes
1
answer
80
views
How to make player lose only one life when hitting many spikes at once?
I have been working on a project in Godot 4.4.1 (a 2D platformer) and have added some spikes for the player to jump on; if you touch a spike, you lose a life.
The problem is that if there are two ...
0
votes
1
answer
108
views
Can't connect to MariaDB in godot
I'm trying to connect to my local database on godot, and the _connect_to_dv_srvr() function does not return any errors. But once I try to create a connection instance, it returns null!
var db_general: ...
3
votes
0
answers
105
views
Is it possible to run physics engine ahead of time to draw the future paths of objects?
In Godot, is it possible to run the physics engine ahead of time?
I want to draw the path two Node2Ds will take after a collision. One Node2D uses input from the player to determine velocity, mass, ...