Programming Questions

1

Hi! I would like to make a FileDialog that can only find one type of Resources, but I guess I would need to give them a custom file extension like file.exp. Is this even possible?
Kommunarsk asked 4/2, 2024 at 12:55

3

Hello! I'm currently working on a spell system for my game where each spell is defined as a resource. This resource includes various properties about how the spell acts, one of which is a "targeting"...
Hargrave asked 9/2, 2024 at 23:48

1

I would like to know how to properly use the MultiplayerSpawner and MultiplayerSynchronizer as I did not find any explicit examples on either the Godot website or on the web. My problem is that I man...
Letterpress asked 7/2, 2024 at 17:54

1

I have been trying to make a system that accelerates the player body forward (forward being the direction the camera faces), but I have been unable to get something that works. All I need is a way to ...
Raymonderaymonds asked 9/2, 2024 at 21:43

18

Hi, so i want to emit a signal when the axe has touched the tree 3 times. I get the error: @ _ready(): In Object of type 'CharacterBody2D': Attempt to connect nonexistent signal 'CollisionsWithTree3' ...
Corneliuscornell asked 9/2, 2024 at 17:2

4

Solved

On running the profiler I can see that the Objects count in Monitors keeps increasing due to a specific function call. Is it possible to check which specific class objects are increasing in count here...
Brabazon asked 6/2, 2024 at 5:54

16

Hello, I want to create a form of "dynamic animations" where the player character doesn't have pre defined animations but with some "guidance" generates them dynamically. What I have tried and has fai...
Delectable asked 4/2, 2024 at 11:36

1

how do I fix this error: "Trying to assign value of type 'Node' to a variable of type 'Node2D" below is the code. extends Node2D @export var world_speed = 300 @onready var moving_environment = $"...
Basilicata asked 2/2, 2024 at 15:26

16

I'm making a 3D FPS game where i am also in the making of a shooting mechanic. I want to make so when bullets collide with something they self_destruct. But, when said bullet is fired and actually col...
Hydrangea asked 30/1, 2024 at 1:4

3

The title says it all, really. I'm making a side-scrolling shooter, and I'd like to be able to convert between metres per second, for showing human-readable numbers, and pixels per frame, for code to ...
Busyness asked 27/1, 2024 at 15:8

41

Hello! As a few people have figured it out the hard way, Godot 4 native physics is a little bit unstable in some situations. And there was even a petition 🙂 regarding returning Bullet physics back i...
Geniegenii asked 24/4, 2023 at 20:19

12

Solved

So I'm making a pickable cube system, and I'm getting this error. Invalid type in function 'action_get_events' in base 'InputMap'. Cannot convert argument 1 from Nil to StringName. Could someone pleas...
Crofoot asked 29/1, 2024 at 15:20

8

You know when there are games that allow you to see your own feet when you look down, or overall just see your character? Is there a way to make this into my game, properly? because, i try and try and...
Actinouranium asked 21/1, 2024 at 23:51

8

I used the code below to spawn mobs on a Path2D Node every time a timer timeouts and I tried to add a counter for how many mobs died by changing the code on the mob.gd so that a count would go up ever...
Glume asked 21/1, 2024 at 1:2

1

Hi, I am having trouble to connect BodyEntered signal from Area2D to my custom function. What I am doing is, on the _Ready of the enemy script I have this: public override void _Ready() { AddToGrou...
Malloch asked 17/1, 2024 at 17:48

5

Solved

So I'm working on spawning enemies, but I have an Area2D that makes them slow to a stop before being queue_freed. For some reason when either enemy enters the Area2D, the code works, but only on the e...
Peggiepeggir asked 16/1, 2024 at 20:36

2

Solved

On my main scene I have a timer node, when it activates I'd like it to call a function within all my instanced scenes (under the main scene) I cannot for the life of me figure out how to do this. I ha...
Proserpina asked 13/1, 2024 at 9:17

22

I don't need a "Global" variable but I need a variable that can be changed from different subroutines and functions! The problem is that the function IS changing the latestX and latestY values succes...
Procrustes asked 9/1, 2024 at 21:41

1

Will the EditorExportPlugin class work in a compiled game? What do I need to do to make it work?
Rousseau asked 9/1, 2024 at 6:10

4

I'm implementing a stationary camera into my game and want to make it so that when the user doesn't press any keys or move the camera for x seconds it will trigger a idle camera that will track the np...
Fasten asked 8/1, 2024 at 17:50

3

I have a scene with code that is meant to affect another scene, so I can't test the first scene "Disc" by itself. I've been reading about "singletons" and "autoload", and heard that you shouldn't use ...
Novanovaculite asked 8/1, 2024 at 1:15

5

Hey. I need to send many HTTP requests at once, but seems that HTTP Request node support only 1 request. What the best way to create these HTTP nodes and send requests from them?
Unlicensed asked 5/1, 2024 at 12:46

6

-- SOLVED -- The last flag in Image.create needed to be 4 so that the channel for colors exists. I'm working on a pixel based world map for my game. To make it, I need to create an image and set it t...
Number asked 5/1, 2024 at 0:33

10

Hi. I have question, is that possible to collapse and same some parts of code? For example, here i have like 1500+ lines of code, and it's really hard to move along it all. I have tried to collapse it...
Zora asked 1/1, 2024 at 8:19

© 2022 - 2025 — McMap. All rights reserved.