Questions tagged [godot-4]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
615 views

Web build not respecting Monospace SystemFont for Godot Label

I want a label to use a monospace SystemFont but the Web build is not respecting this setting. Here's steps to reproduce my situation: Create a new Godot 4.0.1 ...
1 vote
1 answer
41 views

Godot root motion is calculated incorrectly?

I'm trying to set up root motion in Godot but it's not giving the expected result. This is the original animation: After setting up the AnimationTree to use the root bone, the character correctly ...
0 votes
1 answer
84 views

Start debug window on other monitor than the Godot editor

When starting my game for debugging, I'd like to have the game pop up at my second monitor (still in "Windowed" mode), instead of on top of the Godot editor window itself. I've tried several ...
0 votes
1 answer
16 views

See connected signals for instantiated Node while in Debug mode

I'm trying to debug an issue with my game, where the function that should be connected to a signal is not being called. I have a created minimal repro of the situation by: Create a fresh Godot 4 ...
1 vote
2 answers
145 views

Define 2D polygon area and check if point is inside at runtime

I'm trying to write a GDScript (using Godot 4) function that creates a new component at a specific Vector2 position. This works quite well with the following code: <...
1 vote
1 answer
119 views

Drag and drop differences between Godot 3 and 4?

I'd been following Godot tutorials to add Drag & Drop functionality to Control nodes. They've presumably been created for Godot 3.x, but my project is 4.0. And ...
1 vote
1 answer
67 views

How to get equivalent of "padding" on a button?

I'm using Godot 4. I want to increase the distance between the Button's Text (and possibly icon, later on), and it's outer edges, while keeping the "Colors" options such as "Font Hover ...
2 votes
1 answer
40 views

Utilize type hints over duck-typing for "@export var" for custom resource

I'm going through the "Creating your own resources" steps. Here's an abbreviated version of the demo resource bot_stats.tres and the associated ...
1 vote
1 answer
68 views

GridMap centers meshes of different heights in cell

I am trying to use the superb GridMap in Godot 4 beta 5. I have, so far, only 2 different types of meshes in my MeshLibrary. 1x1x1 cube 1x1 plane My intention is ...
0 votes
0 answers
90 views

How do I get the depth texture in an expression in Godot 4's visual shader?

I'm working on a tutorial for creating wake waves with Godot, versions 3.5 and, importantly, the upcoming 4.0. It uses shaders (including visual) and works fine so far, but in attempting to get the ...
0 votes
1 answer
243 views

Draw a player in an isometric tilemap in the right order

I'm trying to create an isometric tilemap world in Godot 4 beta 4. The world is made of blocks on top of each other where for every Y level (thinking the world like if its in 3D coords) there is a ...
1 vote
1 answer
59 views

What's the difference between VBoxContainer and VFlowContainer?

I'm trying to build some UI for my game made in Godot 4.0. I want to make a "Toolbox" scene and need to decide what containers to use. I come from web development, where I'd use a ...
1 vote
1 answer
37 views

OptionButton dropdown appears behind other control nodes

I'm getting used to Godot 4.0, and I ran into an issue where the dropdown menu from OptionButton draws behind all the other control nodes (or, at the very least, those further down the scene tree). I ...
1 vote
0 answers
225 views

Pixel-effect cube in Godot 4

I'm trying to make a simple scene where the camera is in orthogonal mode with isometric settings just like if it was an isometric 2D game. That's because I have already tried doing it with 2D only but ...
2 votes
1 answer
308 views

Tilemap missing collision options?

I've been having a lot of trouble getting tiles to have collision in the newest Godot 4 beta10. I thought there was supposed to be a physics tab that would give collision options like in previous ...
0 votes
1 answer
32 views

How to set a header on a WebSocketPeer?

How to pass custom header information on a Godot4 WebSocketPeer connection?