Programming Questions
2
I am trying to save an Array[Switch] to a file using store_var() and FileAccess. However, when loading it back it comes back as an untyped Array.
## Saves switches to the file specified in SAVE_PATH
...
Drakensberg asked 28/2, 2024 at 14:33
7
Hey y'all,
I wanted to experiment with the new barycentric coordinate function coming in 4.2, but I seem to be getting some odd results with meshes imported from Blender. In a new project I'm using th...
Clientage asked 6/10, 2023 at 5:11
4
when i tried to open scene in editor it failed and give me error. here is the error
scene/resources/resource_format_text.cpp:283 - res://levels/level5.tscn:168 - Parse Error:
Failed loading resour...
Unheard asked 23/2, 2024 at 3:17
7
How can I stop these Labels from overlapping each other?
They should look like this:
This is the scene tree:
Luanneluanni asked 23/2, 2024 at 21:23
14
I mean many games nowadays like platformer or top-down genre games have 3d visual. Someone call them 2.5d games. While they look like 3d but they just use only 2 dimensions space with perspective.
So...
Sebi asked 5/4, 2021 at 4:47
8
so i felt like i had gained a decent grasp on core coding concepts (variables, if statements, loops) and i familiarized myself with Godot and so i wanted to start making small games to learn more by a...
Bentley asked 21/2, 2024 at 10:4
10
The game I am creating relies on timers for a lot of its mechanics, some of which have fairly low wait times, which can cause slight problems because of how often timers can emit their timeout signal....
Prehension asked 9/2, 2024 at 15:46
2
I was trying to store in the save files the unix time in the system to later create a "Continue" button that load the latest save file calculated from each file unix time. But when I store the unix ti...
Tamekia asked 21/2, 2024 at 7:25
2
I am coding some 3d enemies for my game, and they use an Area3d to detect the player and switch from Alert to Idle. The issue is, when I duplicate the Enemy node in the level to have multiple, being i...
Armes asked 21/2, 2024 at 19:45
1
Here I have a while loop and I only want to continue the loop if the velocity of the player is more than (0, 0, 0) e.g they are moving.
Is there any way to wait for their velocity to exceed (0, 0, 0...
Contour asked 21/2, 2024 at 13:26
3
Hi, i am new to Godot and i am trying to write a C++ module using OpenCV for displaying video or webcam in Godot
i create a class to handle get video frame, for example getFrame()
for getFrame(), cv...
Cartie asked 26/5, 2021 at 13:40
2
Hey all, getting really stuck on this one and not sure how to figure it out. I have an array that acts as my inventory for items, works perfectly and fits the code that I want really well. Now I want ...
Doha asked 7/2, 2024 at 22:2
4
Hello,
I have a simple problem, but can't find the solution.
I export a variable with export (int) var speed, but speed is null when I run the game. If I initialize the variable to zero, well I have...
Vulcanize asked 5/8, 2018 at 17:48
2
Say that i want to convert my X rotation and Y rotation into a position in that direction.
This is how to translate my ship.position in the direction it is pointed with Transform3D:
ship.rotation_de...
Ashton asked 16/2, 2024 at 3:51
2
Solved
I'm trying to write a module using tree-sitter with some custom grammars. Here's a minimal example that works outside of Godot:
/* main.cpp */
#include <tree_sitter/api.h>
int main() {
TSParse...
Fiddler asked 15/2, 2024 at 23:35
1
I'm able to use my code to push blocks, and it was working fine, but I wanted to make sure I couldn't push a block into a wall, or another block. to do that, I added some code...
`func _process(delta...
Valadez asked 18/2, 2024 at 4:46
1
Hello,
I'm working on a shell-based grass shader to go with my procedurally generated terrain game. The terrain is an arrayMesh, and the grass is another arrayMesh that is just the top faces of the t...
Estevez asked 17/2, 2024 at 22:2
2
Hello,
I'm facing an issue with resources and the Local to Scene setting.
I have a scene with a Path2D holding a Curve2D ressource. I use it to form curved 2D areas in the editor for my game, which ar...
Mast asked 16/2, 2024 at 18:7
3
I am creating a Player character for my game that at its core has 4 States. Idle, Moving, Attacking and Defending.
The problem I am facing is mixed states. For example when a player moves and attack...
Shingly asked 12/2, 2024 at 11:30
3
i'm making a keypad thing and i don't know how to check if the label text is the same as a value of a var. here's my code :
func _physics_process(delta):
if $Label3D1.text == "hi":
get_tree().qui...
Hydrometallurgy asked 15/2, 2024 at 14:23
2
Solved
I was wondering if there's a way to say "if double click: # do this" in gdscript. I'm aware of this page(https://docs.godotengine.org/en/stable/classes/class_inputeventmousebutton.html), but I'm still...
Krasner asked 14/2, 2024 at 17:55
2
Using the following code, I am trying to make a system that accelerates the player forward based on what direction they are facing. The code works to accelerate them, but I am having issues with the p...
Ammonify asked 13/2, 2024 at 20:14
4
I'm trying to understand how the Custom0, etc array are configured in an ArrayMesh.
Issue 1: So the default is for custom arrays to be PackedByteArrays. So even though its not what I want to do ultim...
Polymorphism asked 13/2, 2024 at 18:34
8
Hi all! Trying to wrap my head around a system here but having a bit of trouble. I want to have buildings that get constructed in my game and exist in different stages and the player can build them up...
Orling asked 13/2, 2024 at 16:11
15
Nowadays, video game begin free really pulling attention but I need to eat and to eat I need money.I know that hash rate difficulty is still growing and I'm aware of how little I can make. All players...
Googol asked 21/12, 2018 at 12:23
© 2022 - 2025 — McMap. All rights reserved.