Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [godot]

Godot is a 2D and 3D open source game engine developed by the Godot Engine community. It features a built-in development environment which runs on Windows, macOS and Linux and can create games targeting PC, mobile and web platforms.

Filter by
Sorted by
Tagged with
0 votes
3 answers
49 views

How to prevent the "_ready" events and pre-ready var declarations in a loaded,instantiated scene?

I have a simple savegame/loadgame system that packs the entire world scene to the disk, then loads it via ResourceLoader.load(): ...
Noideas's user avatar
  • 15
2 votes
1 answer
31 views

Theme lookup in Godot 4.2

Trying to understand how theme lookup works in Godot 4.2. Suppose a Control node script has the following two lines in it: ...
Jakub's user avatar
  • 43
1 vote
1 answer
38 views

How can I constrain a RigidBody ball to move along a path, but only apply forces to keep the ball on the path without adding velocity?

I'm currently working on a game and I'm hung up on this particular issue. I have a ball that is a RigidBody. The RigidBody is ...
Lewis Cianci's user avatar
0 votes
0 answers
25 views

Inconsistent results from ApplyCentralImpulse with RigidBody2D

I'm working on a 2D top-down game using RigidBody2D for the player and enemies. They're bouncing and moving (using ApplyCentralForce) and detecting collisions just fine, however now I want to add a ...
Bryan Johnson's user avatar
2 votes
0 answers
111 views

making a 5 minute Metroidvania prototype and wanna know if my dev process is good

I've been learning Godot and game dev as a whole since the start of this year and I've sunk dozens of hours into practicing making games in it, lately I've set out to make a very small sort of "...
buzzbuzz20xx's user avatar
0 votes
1 answer
50 views

adding a knockback effect to a CharacterBody2D in Godot 4.2.1?

i was following a tutorial series on YouTube on creating a Zelda clone in Godot 4.2.1 and everything works fine, but the tutorial never implements a knock-back effect when attacking an enemy so i ...
buzzbuzz20xx's user avatar
1 vote
1 answer
52 views

How do I place the local center of my tilemap at 0,0?

If I have a tilemap that is 4x8, positioned at 0,0 in the editor as follows: What code would I use such that it ends up "centered" when my game runs? I'm hoping for an end result that would ...
Alexander Trauzzi's user avatar
1 vote
1 answer
60 views

Is it possible to set properties on a scene in a TileMap/TileSet?

If I have the following: sample of code showing exported properties: [Export] public TileSet TileSet { get; set; } [Export] public string TileName { get; set; } ...
Alexander Trauzzi's user avatar
0 votes
0 answers
58 views

Stray (orphaned) nodes remain after queue_free() of their parent scene

Godot 4.2.1 I have implemented a simple scene-save system: The Savegame Autoload listens for the S key press. When S is pressed, the ...
Noideas's user avatar
  • 15
0 votes
1 answer
61 views

How to convert a dynamic VIewportTexture to a "static" one?

Assume there is a viewport that "looks" at some Sprite2D. This viewport's view is providing the texture for a Sprite3D ...
Noideas's user avatar
  • 15
1 vote
1 answer
117 views

Momentum for a First Person Controller in Godot 4

My First Person Controller (CharacterBody3D) currently has no momentum at all. By the way, I measure my movement speed in the debug panel (hotkey ~) with ...
ThetaJones's user avatar
0 votes
1 answer
24 views

How to get around mouse entry signal stopping at first collision?

I have a grid of Area3D objects, and when nothing is around them, they handle the mouse_entered signal exactly as I would expect. The only issue is that I also use Area3D's on other game objects, like ...
Fred Etingen's user avatar
0 votes
2 answers
100 views

FP Movement along the wall makes the character move faster and glitches out a little

First Person Movement along the wall makes the character move faster and glitches out a little. The problem is pretty much visible here: https://youtu.be/_1dDdCSwVEo Source: https://github.com/...
ThetaJones's user avatar
0 votes
1 answer
84 views

Assigning Color Won't Work

I am trying to make a palette-swap shader. Here is my code: ...
TheJalfireKnight's user avatar
0 votes
0 answers
50 views

How to efficiently path many objects to a moving point?

Working in 3D in the Godot engine, I have an object that moves through space and, like a tornado, is intended to pick up objects in its path. What I have right now is janky, effectively re-baking the ...
Evan C's user avatar
  • 1
1 vote
2 answers
235 views

Efficient storing of tabular user generated data in Godot

Over the course of the game, the user generates a lot of very simple data. And array of strings (single letters), timestamps (int) and a boolean array, all equal in size. The length of this "save ...
Jakub's user avatar
  • 43
1 vote
0 answers
87 views

What exerts a force on my rigidbody?

I'm trying to create a simple 2D scene with two rigidbodies, which are connected by two pin joints. There is one large rigidbody, a green circle, which is slowly rotating at a constant speed (as its <...
F-H's user avatar
  • 111
3 votes
2 answers
882 views

Godot: Spawn an object in 3D

I'm working on a FPS game in Godot, and I want to be able to drop a flare on the ground at the player's position. I created a scene with a "flare", which right now is basically just a sphere ...
AndyD273's user avatar
  • 163
1 vote
1 answer
101 views

Godot 4.2.1: Calling get_data() on Image from NoiseTexture2D Returns Null

I am trying to retrieve image data from a NoiseTexture2D. I seem to be able to get an image resource, but as soon as I try to get the associated data via ...
Haruto Kaito's user avatar
1 vote
2 answers
146 views

Disable all Player input in Godot 3?

I'm making an "Asteroids" clone in Godot 3.2.3 the way that the Bullet is spawned in-front of the Player ship is simple : the main game node will find the Player node's position and rotation ...
buzzbuzz20xx's user avatar
1 vote
0 answers
48 views

How to use resource that is already "in use" in scene

I started looking at a demo project in Godot (an included demo project for different particle effects), and there were GPUParticles2D nodes that spawned particles randomly along the white pixels of a ...
dekuShrub's user avatar
  • 111
1 vote
0 answers
48 views

How to use await with GDExtension-wrapped external library functions?

I am looking at wrapping functionality from an external C++ library with GDExtension for use with Godot 4. Many of these functions have an appreciable runtime before they return the values of interest,...
R.M.'s user avatar
  • 141
2 votes
0 answers
97 views

How to connect two rigid bodies, then displace them relative to one another?

I want to temporarily connect multiple RigidBody2D objects in a Godot 2D scene so they move together as one rigid body, and later split them up again. I have ...
O. R. Mapper's user avatar
0 votes
0 answers
88 views

How to make multiple variants of an enemy mob scene?

I'm just starting out in Godot 4. I followed this tutorial on how to create my first game, and I'd like to add some new features to make it more interesting, and start coding some stuff of my own. I'd ...
Whitehot's user avatar
  • 101
0 votes
0 answers
73 views

Huge gaps between my tile textures in Godot

The texture itself doesn't have any gaps in it. I don't know where these gaps are coming from. Someone suggested that I check if the sprite sheet's cell size and padding are correct. When I checked I ...
Hassan Shehzad's user avatar
1 vote
1 answer
68 views

Sobotka's AgX in Godot 4?

Is it possible to use a custom OCIO called AgX in Godot 4? Has anyone ever tried something like this and succeeded?
ThetaJones's user avatar
2 votes
1 answer
77 views

Pin object to the end of a rope

I'm trying to make a cool simulation where a rope swings with an object attached to its end. I've set up the rope using Verlet integration and used Hooke's law to attach the object. But here's the ...
Ainsley Harriott's user avatar
1 vote
1 answer
79 views

In Godot, how do I reposition the center of my mesh?

When importing a Unity package to Godot via Unidot importer, I noticed that a few imported models have their child rotations and transformations off-center from their expected points. For example, ...
needoriginalname's user avatar
2 votes
2 answers
137 views

Turn a 2D array into a 3D map

I have a C# script that creates a random 2D array that is a map for a cave system. Sample Map: ...
AndyD273's user avatar
  • 163
0 votes
0 answers
140 views

invert:condition "det==0" is true error with no obvious cause

For my project I am turning my CharacterBody3D 90 degrees on the x-axis towards a wall. To achieve this I set basis.Z to the <...
NEWBIE's user avatar
  • 23
2 votes
1 answer
60 views

How to structure my composite (player) object?

While learning about the Godot engine, I am trying to write a simple spaceships game. A spaceship, as I have found out, can be defined as a scene of its own, with the following internal structure: <...
O. R. Mapper's user avatar
0 votes
1 answer
55 views

Path3d Offset from GlobalPosition

my path3d node is several meters away from the global position.My transform are not changed from their base setting. Code: ...
NEWBIE's user avatar
  • 23
0 votes
1 answer
74 views

Turret following the player in the opposite side

i have tried using lookout method then flipping it by 180 degress but it gives me the same result as the problem i had before. my turret turns left when i move right and vica verse. To fix this i used ...
NEWBIE's user avatar
  • 23
0 votes
1 answer
127 views

1px Font size too big for pixel art game - how to deal with this?

I have a pixel art kinda game that I'm building in Godot. I'm a newbie to both game dev and art. I have 32px high character sprites, with objects and the world scaled to be proportionate to those ...
WT_W's user avatar
  • 111
1 vote
1 answer
120 views

remaking Pong in Godot but the opponent AI cannot locate the ball's coordinate correctly

I'm following a detailed YouTube tutorial on remaking Pong in Godot 3.0 but I have ran into an issue regarding the way the AI opponent reacts to the incoming ball, what's happening is that the ...
buzzbuzz20xx's user avatar
1 vote
1 answer
92 views

How to pause player motion during an air attack animation in Godot 4?

So I am very new to Game Dev, and I am running into a problem that seems like it should have a simple answer. Unfortunately, I have not been able to figure it out. I am creating a 2d side scroller. I ...
Bobb Starling's user avatar
1 vote
2 answers
112 views

How do i get key input using c#

To change key configuration i need to get the key input but after looking around i havent found any way of doing that using c#.The other way is using the Gd programming language.but i cant do that as ...
NEWBIE's user avatar
  • 23
0 votes
0 answers
31 views

Multiplayer Entities And Player Storage Systems

https://github.com/Zylann/voxelgame/issues/103 How can entities and player storage work for this demo? Are there any examples or prototypes? Goal: Minecraft style entity and player storage system. ...
WithinAmnesia's user avatar
1 vote
1 answer
183 views

What is the correct way to stop a Godot dedicated server

So I'm trying to understand how multiplayer works in Godot and the docs are very clear when one application is the host and the other applications join the host. Now i want to have a dedicated server ...
LoonPie's user avatar
  • 78
1 vote
1 answer
32 views

Add Item for OptionsButton is Gone from the editor

When i added in a optionbutton for my hud i couldnt find a way to add items manually,this was weird as when i looked for a way,a button on top of the editor should appear but its not there? I dont ...
NEWBIE's user avatar
  • 23
3 votes
2 answers
2k views

I've hit the limit of what ChatGPT can teach me about game development in GDScript — what strategies can I use to keep making progress? [closed]

I felt like I had gained a decent grasp on core coding concepts (variables, if statements, loops) and I familiarized myself with Godot, so I wanted to start making small games to learn more by ...
buzzbuzz20xx's user avatar
3 votes
1 answer
59 views

Running a standalone Godot application on a Yocto 2.6 system with OpenGL3.0/ES2.0 hardware

I have an application that displays construction machines like excavators or snow groomers. The application is built on my company's custom engine, but I am trying to find out if I can port it to a ...
Kadir Erdem Demir's user avatar
0 votes
0 answers
75 views

Enemies not registering hits from the player in Godot

I am making a 2D game where the player can attack enemies using a designated Area2D node as an attack area. I set up signals to manage attack phases and ensure ...
buzzbuzz20xx's user avatar
0 votes
0 answers
48 views

Can I save blended animations as .anim?

I've got two animations, and they blend well. Can I save the thing as a singular .anim file ?
Xenophile's user avatar
1 vote
1 answer
78 views

Issue with AttackArea Monitoring Before Attack in Godot 2D Game

I'm developing a 2D game where the player character can attack enemies using a designated attack area (Area2D node named AttackArea). I've encountered a problem where the AttackArea is active and ...
buzzbuzz20xx's user avatar
5 votes
1 answer
674 views

What causes some web game engines work in "slow mo" mode instead of reducing FPS but continuing to show the true time/tick state of things?

I used game engines that are capable of cross-platform export: Cocos Creator, Godot, Unity, others. Some game engines have this thing, called "physics update" or "fixed update". ...
idchlife's user avatar
  • 229
0 votes
1 answer
102 views

My CharacterBody3D Is getting blocked by ramps that act as walls

To summarize, my ramp is acting like a wall even if it is created to have a collision and mesh that fits its shape. I have tried: Putting the max angle to 90 using different ramps (CSG & mesh) ...
NEWBIE's user avatar
  • 23
0 votes
0 answers
69 views

StaticBody2D on body enter without Area2D

How can I get the body_entered signal on a StaticBody2D without an Area2D? I know ...
Salem Domani's user avatar
3 votes
1 answer
452 views

Checking if a node is of a given type in Godot 4

I want to check if the player is near a door. In practice, this means that I want to check if the Area2D of the player node overlaps a door node (an ...
Eldy's user avatar
  • 835
5 votes
1 answer
105 views

How would I switch an animation track between continuous and discrete mid-animation?

How could I set it so that an animation track switches update mode mid animation? For example, when I need to have separate parts of a sprite's image remain in place as the frame changes? An example ...
Programmer S's user avatar

1
2 3 4 5
12