2,411 questions
0
votes
1
answer
101
views
Mutating a config file in Godot overrides the whole file
I am trying to use a config file to keep track of some stats between levels so I can display scores on the level select screen. I initialize the stats to default variables when the game starts, then ...
0
votes
1
answer
118
views
gdscript local classes: Access class given instance in Godot 4
If I have an instance of a class B which is defined locally, is there any way to access B (as a variable) using that instance?
class B extends A:
pass
# example
func is_subclass(sub: A, sup: A) -&...
0
votes
1
answer
63
views
How to check if an AABB is visible to the camera in Godot 3D (for LOD terrain)?
I'm working on a LOD terrain system in Godot 4.4 where the terrain is divided into quads. Each quad has an AABB, and I want to check if that AABB is inside the camera’s view before subdividing it for ...
0
votes
1
answer
336
views
Godot 4.4.1 Game Engine while playing the project the window size is too large to fit the screen, as i am developing the game for mobile in portrait
Hi I am very new to Godot Game Engine, I am trying to make a game for mobile phone in portrait mode, the display window size I set is 1080 by 1920, now I try to run the project in my computer only ...
0
votes
2
answers
104
views
Godot weapon resources with animations?
I'm new to game development and I'm making a 2d Souls like and want to know how to make weapon resources have animations
I've been trying with animated sprites and spritesheets but I get an error ...
0
votes
0
answers
81
views
How do I handle item rotation in a resident evil 4 inspired inventory system?
So I have created an inspired resident evil 4 inventory where items can take more then one slot, the problem I am facing is figuring out how to rotate the item in the data and also visually, I have ...
0
votes
0
answers
60
views
How to merge Godot4 terrains in Tilesets?
I managed to build my terrain set with two terrains, gray and green. They each have their own atlas (green is just recolored gray for now) and I set up the tiles and their individual terrain ...
0
votes
1
answer
92
views
Why do Inherited Scenes have the same behavior when instantiated?
I've created a Parent Scene as EnemyBase and after that I created Inherited Scene from that as Child that is Enemy. Now, I am creating instances of child on the Level Scene, but all children have the ...
-1
votes
2
answers
453
views
How can I make a responsive and Scalable Viewport for 3D View in Godot Engine
I am trying to scale Godot Engine 3DNode, Subviewport, Subviewport Container.
When i am scaling it with Resized Signal with Parent's size, able to scale it up but not scale down. So Resizing work only ...
0
votes
1
answer
83
views
How do I fix weird positioning of textures in Godot?
I created a Meshinstance and set the texture to the default "icon.svg" file. But it is weirdly cut off. Changing the size of the mesh does not help. It just remains oddly cut off, rotated, ...
-1
votes
1
answer
114
views
How to make enemy chase player on X and Y coordinates?
I am trying to create a function to make enemy chase the player on my game. The player moves on X and Y coordinates and the enemy needs to chase on X and Y coordinates as soon as the player change his ...
0
votes
0
answers
77
views
Using Android Recording API inside a Godot plugin
I'm trying to access the number of steps taken by the user inside a Godot game. For that I'm using and modifying this Godot plugin template: https://github.com/m4gr3d/Godot-Android-Plugin-Template
I'm ...
1
vote
0
answers
224
views
GDExtension: Custom class as parameter and or property
I'm trying to get some traction with GDExtension for Godot 4.4, I managed to follow the tutorial, but get lots of scons errors when I try to use another custom class as a parameter in custom classes ...
0
votes
1
answer
60
views
Cube moving along a grid causes it to skip selected grid cells
This is very hard to explain but I will try my best, so I have a grid system where I can place blocks e.g Generator(produces cubes) and a conveyor block (moves the cubes around) and I also have a tick ...
0
votes
1
answer
34
views
Trying to add a 3D hotbar by using 2nd ortho camera, but it displays sky and obscures the world
I am trying to add a 3D hotbar to my Minecraft clone at GitHub
So I have added a 2nd camera as SubViewportContainer → SubViewPort → hotbar.tscn → HotbarCamera and put the cubes in a line and at layer ...
0
votes
0
answers
54
views
How can I make this shader made for Godot 4.2 work in 4.3
I've been trying to follow the shader made in this youtube video: https://youtu.be/4dfADUfyKTA?si=82ABjYR1zPsPueSr
However the shader was created with Godot 4.2 and I am working with 4.3 which as I ...
0
votes
1
answer
141
views
How to sync nested properties with PlayerSyncronizer
I've found a problem in my code.
I have the class Character , which has a property called characterState that is an type of "CharacterState", inside my characterState I have the property &...
1
vote
1
answer
62
views
randf_range called with callv always returns upper limit
Godot - GDscript provides us with a callv method:
Calls the method represented by this Callable. Unlike call(), this method expects all arguments to be contained inside the arguments Array.
I'm ...
0
votes
1
answer
131
views
How do I make my Godot 2D game resolve input on colliders before control?
I am making a 2D game using Godot 4 and gdscript, and I am running into a slight issue with handling input.
The background for the game is a TileMapLayer. On it there are several non-overlapping ...
1
vote
1
answer
197
views
How to change to instance of a scene?
I'm trying to make a pretty linear game that has Chapter 1, Chapter 2, etc, obviously with each one having a different content but sharing similarities (e.g. that each chapter has a chapter title). I ...
0
votes
1
answer
350
views
Debugging Godot C# in VS Code
VS Code refuses to debug my godot C# project. I get this fun message:
'E:\Godot\Projects\defendtheboard\DefendTheBoard.csproj' does not support debugging. No launchable target found.
I have copied and ...
1
vote
1
answer
161
views
How can I check for the child instead of the parent for collision in Godot?
I'm trying to detect collision to attack an enemy, but I don't want it to detect the player as a whole, I just want it to detect the Collision2D node named "Sword Hitbox". Is there any way ...
1
vote
1
answer
109
views
Grid based movement in Godot 4.3 C# feeling choppy and not quite responsive
I am trying to create a Pokemon Gameboy like grid based movement in Godot, however the movement is choppy, it feels weird as when the character moves after going one tile there is a short pause after ...
0
votes
0
answers
96
views
godot web export does not support text in other languages
I am developing a game with the Godot game engine for the web platform.
The problem is that when I want to output for the web, only the English text is displayed correctly and the rest of the language ...
0
votes
1
answer
133
views
Is there a way to create a very fast auto Timer system without it being inconsistent in Godot?
I'm a Godot newbie. I'm making a top down zombie shooter game just to explore the world of game dev. While trying to make automatic rifle, I found that it shot very inconsistently. How I did it was I ...