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
0 answers
5 views

What's the correct way to use NavigationAgent3D in Godot?

I've just started using Godot and obviously fail to use NavigationAgent3D correctly. I've added a NavigationRegion and baked a ...
Paul K's user avatar
  • 121
0 votes
0 answers
10 views

How to drag and drop complex objects (with multilayered textures and text) in Godot?

Newbie to Godot here. My idea is to create a deck building game, inspired by Slay The Spire or Across the Obelisk. I have come to a problem that I can not seem to find the answer. So, the card object ...
wowowhale's user avatar
1 vote
1 answer
49 views

What's a convenient way to setup two objects that physically "plug" into each other?

I'm making a puzzle game and I need two pieces that look like they fit together (like a DVI port and DVI plug). I want them to be two separate scenes because I want to place and animate them ...
idbrii's user avatar
  • 567
0 votes
2 answers
26 views

How to get nested child node without using full path in Godot?

How to get nested child node without using full path? I tried with just node name, it doesn't work. The script is on top level so the path is quite long: ...
idbrii's user avatar
  • 567
0 votes
1 answer
15 views

How do I make a 3D cursor that follows the mouse in Godot?

I want to position a 3D object at my mouse cursor. How can I do that in Godot? In Unity, I'd use Camera.ScreenToWorldPoint.
idbrii's user avatar
  • 567
1 vote
0 answers
60 views

Dialogue Manager Godot 4 Signals

When using the Dialogue Manager addon on Godot, I am trying to run a function to change the sprite of a character. My function look like this under my character script: ...
TheJalfireKnight's user avatar
3 votes
2 answers
79 views

How would I mask the player node out of a canvas shader?

I'm making a 3D game, and I want to create a post processing effect using a canvasitem and a colorrect, that effects everything on screen apart from the player. I already have the shader itself made, ...
JackHainsworth's user avatar
2 votes
1 answer
56 views

Changing the scale of a character and speed to match the perspective of a 2D background while traveling along the Y axis

I am making a 2D point and click game, just for fun. I want to create some sense of perspective, so I am trying to change the scale of the player as he travels along the Y axis. Obviously, the speed ...
ehtio's user avatar
  • 121
1 vote
1 answer
80 views

Twin-stick backwards tank movement

I'm creating a 3D twin-stick tank game in Godot with C#. I have created the tank movement and rotation, separate of its turret, and it seems to be working properly. The issue: I want the body of the ...
Reinier de Vries's user avatar
1 vote
0 answers
50 views

Raycast suspension simulation rebounds car on landing

I'm expecting the car to land and engage the suspension to dampen the landing. The code I'm using currently has this effect: ...
Lousifr Illuminos's user avatar
4 votes
1 answer
83 views

Explode image into component pixels shader

I'm currently stuck on trying to write a shader for Godot 4.x. and get it to look right. I'd like to take an image, pixelate a bit so that particles are a bit chunky, and then explode it into ...
Ghoul Fool's user avatar
0 votes
1 answer
103 views

How do I configure Godot 4.1.1 to use Rider as the IDE for C#?

I can't find out how to do this. I've installed the godot plugin into Rider. I found two tutorials, one says to open Godot, and go into Project Settings and find Mono and change some settings. However ...
NibblyPig's user avatar
  • 151
3 votes
1 answer
54 views

How can I check if `call`, `callv` failed

In Godot, how can I check whether e.g. Call(...) or Callv(...) succeeded or failed? By failed I mean due to e.g. missing method, ...
geekley's user avatar
  • 133
1 vote
0 answers
32 views

Why is my Godot Scene referencing incorrect object instances?

After closing and reopening the Godot editor, objects in my scene reference the wrong resource. I have Wall nodes in my scene which reference the Wall.tscn at first, but once I close and open Godot, ...
Erik Ring-Walters's user avatar
1 vote
0 answers
29 views

Sprite2D texture repeat switches from Mirror to Disabled when resizing window

In Godot 4, I set the texture repeat of a Sprite2D to 'Mirror', When I run the game, it works fine except when I resize the window — then the texture repeat switches to 'disabled'. Is there a ...
Shahzaib Hassan's user avatar
0 votes
0 answers
145 views
+50

JIttery rendering and ghost trail behind platformer character in Godot

I have no gamedev experience and I just started learning. I wanted to develop a basic platformer to learn. I got stuck pretty soon with rendering in Godot. When I run the game, it just feels... ...
alturkovic's user avatar
1 vote
1 answer
47 views

Stay Upright Within Rotating Area

I am making a game that takes place in space and I want you to be able to stay upright in a spaceship even if it rotates. I have this set up: Its a platform and an area that rotates. I have ...
TheJalfireKnight's user avatar
0 votes
1 answer
84 views

How to assign a Resource Array to a variable in Godot 4?

In Godot 3, you could do this: export var (Array, Resource) test_variable I tried to recreate this in Godot 4, but I could not figure out how. This is what I tried:...
TheJalfireKnight's user avatar
1 vote
1 answer
41 views

Detect intersections between an `AABB` and a `CollisionShape3D`

I thought this would be a simple matter of getting the mesh that defines the CollisionShape3D and checking if any of the triangles of the mesh intersect with the <...
beyarkay's user avatar
  • 127
5 votes
2 answers
1k views

What is the difference between @onready and _ready()?

In Godot 4.x, is declaring @onready variable exactly the same as declaring it within the _ready() function? ...
Ghoul Fool's user avatar
2 votes
0 answers
61 views

Y-Sorting Not Working Correctly

I am trying to use Y-Sorting on a tilemap tree to Y-Sort the whole tree, but it is Y-Sorting each tile of the tree instead of the tree as a whole: I have tried adjusting the Y-Sort Origin but that ...
TheJalfireKnight's user avatar
2 votes
1 answer
160 views

Why can't I access my custom signal under the SignalName subclass when trying to emit it?

I have recently decided to start learning Godot after previously having experience with Unity, and am continuing with C# as my primary scripting language. While everything else regarding signals seems ...
Deano's user avatar
  • 23
0 votes
0 answers
23 views

Two CollisionShape2D's Overlapping

I am trying to make a game in Godot 4.1.1 and I encountered a problem. Whenever my player collides with the enemy, their collision shapes overlap and the enemy stays connected to the player. Here's ...
TheJalfireKnight's user avatar
0 votes
0 answers
46 views

How do I spawn a secondary sword in the player hand when the player picks up a second sword from the floor?

I'm having trouble implementing a dual wielding system. I want to spawn a secondary sword in the player hand when the player picks up a second sword from the floor. As of now I'm using an item ...
user104995's user avatar
1 vote
2 answers
69 views

Un-pause game button not working

I can successfully pause my game with Godot 4.1 with: ...
Ghoul Fool's user avatar
0 votes
0 answers
30 views

Collapse/uncollapse a Tree in Godot 4 by clicking on the TreeItem?

Is there a way to collapse/uncollapse a Tree (Control) in Godot 4 by clicking on the TreeItem instead of the folding arrow? I ...
Alex CB's user avatar
  • 366
1 vote
2 answers
128 views

Can my game have multiple rendering APIs?

I don't care how much you insist that Graphic API doesn't matter, I've tested it and I've seen other people test and yes switching graphic API can literally half your FPS.... 50% of your FPS gone just ...
Cei's user avatar
  • 863
1 vote
1 answer
33 views

Bullet not colliding with either plane or drone

i made a godot game in which theres a player and a drone, I got the shooting to work but when i tried to make it so that the bullet attacks the drone/player, it wasnt working properly. Basically i ...
Shahzaib Hassan's user avatar
1 vote
1 answer
126 views

Generate a fully 3D NavigationRegion/pathfinding in Godot 4

I'm making a spaceship game where the enemies and the player have the full 6 degrees of freedom, so can move forward/backwards, left/right, up/down and can also rotate in all three axes. I'm wanting ...
beyarkay's user avatar
  • 127
1 vote
1 answer
312 views

_ready(): Node not found: "Pivot/Camera" + player falls through the floor

I'm relatively new to Godot 4.0.3. I have two problems which seem to depend on each other so I put both of them into one single question. I know, these issues have been reported multiple times on ...
EarthAndMoon's user avatar
2 votes
1 answer
198 views

Is there a way to set custom data per cell in Godot 4?

My idea is to mark a cell as "occupied" when a character is in that cell doing something so no other character can be on that cell working. My first thought was to set a ...
Alex CB's user avatar
  • 366
0 votes
1 answer
27 views

How can I change the image used by a TileSet in Godot?

I have a tile set that uses an image. I want it to use a new image. The new image has a different name/path than the old image. How do I tell the tile set to use the new image?
Seph Reed's user avatar
  • 205
0 votes
0 answers
31 views

I'm experiencing mesh pop-in on Godot 4.0.3 web export; how do I fix this?

I'm working on a game jam using Godot 4.0.3, and I'm intending to export to HTML5. The game works perfectly on native, but on a browser, meshes tend to pop-in when they're closer to the player than I ...
Michael Macha's user avatar
0 votes
0 answers
52 views

How to remove plastic-like reflection from visual shader?

The problem is that this is a piece of terrain, it should not have blue reflections like it's made of plastic. But when the camera gets close enough, these specular highlights are rendered. This is ...
Cei's user avatar
  • 863
1 vote
1 answer
83 views

Using both look_at and flip_h in Godot

I am trying to have a player running in a side scroller platformer with its arms independent from its body, so that the arms can follow the mouse (to aim). The issue is that when the character goes to ...
balthazar's user avatar
  • 113
0 votes
1 answer
68 views

Class in a class in Godot, how do you access things from the containing class?

I have a class inside a class. I would like the inner class to be able to access functions from the outer class. Something like what's below: ...
Seph Reed's user avatar
  • 205
0 votes
2 answers
143 views

How do I find and replace text with regex in Godot?

The way to find and replace text in javascript from regex is like so: ...
Seph Reed's user avatar
  • 205
1 vote
2 answers
435 views

How do I create and import a class in GDScript

I would like to create and import a class in GDScript. Here is some non-functional pseudo code to explain what I'm trying to do: ...
Seph Reed's user avatar
  • 205
-1 votes
1 answer
162 views

How to access webcam in Godot on non-Apple platforms?

When I search for how to access the webcam in Godot, I find the CameraServer, but the docs say: Note: This class is currently only implemented on macOS and iOS. On other platforms, no CameraFeeds ...
Cei's user avatar
  • 863
9 votes
3 answers
2k views

What's the appropiate way to achieve composition in Godot?

How? I think I still don't properly understand how composition in Godot works. So, as far as I know, you 'compose' stuff in Godot, right? Like, if you want to make a rock you create a mesh node with ...
YoshGJ's user avatar
  • 423
1 vote
1 answer
77 views

How can I make a 2D shader that darkens all sprites not in a certain area?

I was wondering if there was a way to make a 2D shader (or use any other method) to selectively black out areas of the screen that are not in a specific region. I need this shader because in the game ...
dahrasz's user avatar
  • 55
0 votes
0 answers
28 views

NPC resets when stepping on slope

this fella telleports back to spawn position every time it steps on a slope artificial _physics_process called pc() and is being called by a timer every time the timer ticks, for this specific mob ...
Cei's user avatar
  • 863
2 votes
1 answer
234 views

How do I render a pixel art game in a modern (scalable, smooth, crisp, hdpi friendly) way with Godot?

In modern pixel art games, one will usually find the following features: dpi agnostic: Having an HDPI screen does not mean the game is tiny. "large" pixels: Game-pixels are big, made up of ...
Seph Reed's user avatar
  • 205
0 votes
0 answers
74 views

applying gravity breaks entirely this AI movement code

I'm calling this function every 0.078 seconds so about at 13 fps using a timer connected to _ready() this way my game can easily run over 400 enemy units with ...
Cei's user avatar
  • 863
0 votes
1 answer
60 views

How can I make sprites and tile-sets interact with y-sort correctly in Godot?

Y-sort is not working how I would expect in Godot. I have a player sprite, their feet are at the origin. I have a y-sorted tile layer. The mushroom base is at the bottom of the tile, it doesn't ...
Seph Reed's user avatar
  • 205
1 vote
1 answer
101 views

How to efficiently detect targets for AI?

A creator named NovemberDev made this game without having performance in mind, yet his enemy AI, while being relatively simple, is still extremely fast: his game can have hundreds of enemies all ...
Cei's user avatar
  • 863
1 vote
1 answer
158 views

How do I keep a node centered while animating scale in Godot?

When scale is modulated, the item scales from the top-left corner. I tried changing anchors preset to "center" but it still scaled from the top-left corner. How do I make it scale from ...
Seph Reed's user avatar
  • 205
0 votes
0 answers
21 views

loading data without deleting the tree node?

for now I'm using this autoload https://github.com/Ceisri/Godot-Action-Combat/blob/main/scripts/SaveState.gd, it's from a tutorial, to save the position of entities, it deletes the entire scene and ...
Cei's user avatar
  • 863
1 vote
1 answer
113 views

How to make sure my UI remains the same across multiple screens?

How to make sure my UI remains the same across multiple screens? I've looked at some tutorials, but they didn't seem to apply to my situation. I tried the following, but they didn't resolve my problem:...
Cei's user avatar
  • 863
0 votes
1 answer
37 views

how to move a mesh to be the child of another node?

if i import an item directly unto a bone attachment for some reason it becomes so small it is invisible even tho the bone attachment has a scale of 1 to 1 and was never re-sized also the rotation is ...
Cei's user avatar
  • 863

1
2 3 4 5
10