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
1 vote
1 answer
25 views

How to inherit from a custom node of a gdnative plugin, in gdnative?

Context I am developing a game in gdnative and I would like to design it in several "modules", where there would be: a main module for the core gameplay, a second module that I defined as a ...
user avatar
1 vote
1 answer
34 views

Reflection Line2D

I found a video on YouTube with a sercol and a beam, and everything seems to be fine, but the beam doubles and flickers after spawning from the mirror, tell me what could be the problem, screenshot ...
user avatar
1 vote
1 answer
33 views

Godot: How to set in game language?

My game can translate keys into 3 different languages (English, Chinese, Japanese) I verified that each translation works using the "test" feature in project settings. I want to add buttons ...
user avatar
2 votes
1 answer
45 views

Godot: is_on_floor always false

This is an extremely simple game (following tutorial). My code and configuration allows the actor object to fall on a platform made of tilemaps and not fall through, but the function is_on_floor() ...
user avatar
1 vote
0 answers
53 views

walk/stick to a platofrm

I was wondering how to approach this idea using Godot , is there a built in way to make a KinematicBody2D or ...
user avatar
  • 197
1 vote
1 answer
61 views

Making interacting gears in 2D

I want to create mutually rotating gears for a puzzle game. I looked at a lot of material, but didn't understand how to make a RigidBody2D stay in one place correctly and interact with each other. ...
user avatar
1 vote
1 answer
44 views

Set Cell Not Creating Tiles in Godot

I have a script in GDScript that contains a simple mouse position listener, and a set_cell function that sets a cell. For some reason, when I set the cell on my ...
user avatar
0 votes
1 answer
64 views

Godot KinematicBody2D Invisible After If Statement

The reason I address this question is because of the limited documentation and support for starting devs on Godot. I do not know what is wrong with this one if statement, but after I added it, my ...
user avatar
2 votes
2 answers
103 views

How to differentiate between enemy and something else in Godot?

So, I have a simple 3D game with a player, an enemy, and walls. I've figured out how to detect collisions between my player (RigidBody) and an enemy or wall (Static Body). I want to know how can I ...
user avatar
2 votes
2 answers
45 views

_Input and _Process runs twice

Please note that my Godot version is 3.3 so that could be a reason. I tried to create a script to shoot bullets. First I tried using the input function ...
user avatar
1 vote
1 answer
28 views

Can't save texture on tileset resource in Godot

New to Godot so sorry if this is a dumb question, but I haven't seen tutorials that explain this. Godot is running as admin in Windows. I have a scene and a tilemap node and a tileset resource. When I ...
user avatar
1 vote
1 answer
51 views

Vertex color values are not smoothly transitioning/interpolating in Godot shader

I'm trying to write a shader for terrain that will color the mesh based on slope angle, ie color the sides of mountains or other steep surfaces a different color than the ground. In my shader I am ...
user avatar
2 votes
0 answers
94 views

Fix slow and weird diagonal movement on slopes in Godot 3D?

I am creating a 3rd-person player controller using move_and_slide_with_snap in the style of WoW, so the player's speed should be the same horizontally no matter what the slope of the terrain they're ...
user avatar
1 vote
1 answer
106 views

Is there a way to globally/uniquely reference a node in another scene?

I'd like events/actions (e.g. pressing a button, defeating a mini-boss, etc.) in one area of the game to affect things (e.g. unlock/open door, enable boss spawn) in other areas that are distinct/...
user avatar
  • 1,115
1 vote
1 answer
30 views

Remove a tile from a scene with GDScript in Godot

How do I remove a tile from a scene programmatically? I have tried the following to no avail: ...
user avatar
4 votes
1 answer
1k views

Is there a do-while loop in GDscript?

Is there a do ... while (condition) loop in GDscript? The documentation explains while but makes no mention of ...
user avatar
  • 1,115
0 votes
0 answers
40 views

Unable to change main scene

Very new to this: I am trying to switch my main scene in project settings from World.tscn to Menu.tscn but I am met with this warning. The Menu.tscn works fine and the project is not running while I ...
user avatar
  • 1
2 votes
1 answer
30 views

deleting and re-referencing nodes with $

I want to delete a scene and re-load it. This code would fail later, because the new "CoolScene" has in fact a different name, something like "@NotSuchCoolName@34", and thus it ...
user avatar
  • 143
3 votes
0 answers
47 views

How do you compute for angular spring physics for physics joints in game engines?

I'm working on fixing Godot's physics joints. Currently, it uses Euler angles and it doesn't help me in building active ragdolls for my game. I heard that using quaternions is the way to go. So I ...
user avatar
0 votes
1 answer
52 views

How can I shrink a CheckButton's icon sizes in Godot?

Background I am making a CheckButton for toggling sound in my game. I have created an on and off icon for this purpose. I have two other ...
user avatar
0 votes
1 answer
75 views

How to print out the properties and methods of a class in GDScript?

I want to print the properties and methods of a class into the console with GDScript. In Python, this can be done with the print(dir(variable)) method. Is there an ...
user avatar
  • 121
2 votes
1 answer
51 views

How can I keep a node in-place while I re-parent it?

I have an object that needs to follow various Path2D paths in my scene. To do this, when it needs to follow a path, I re-parent it to a ...
user avatar
  • 1,115
0 votes
0 answers
40 views

Godot some faces of imported from Blender model are darker then other

I tried to export some scene from Blender to Godot as .fbx, .dae and .glb, but every time it ...
user avatar
0 votes
0 answers
33 views

Godot imported texture becomes black at some distance until editor's restart

Godot 3.4. I have some model with shader. I am using texture there. When I place images into project's folder they appears in editor file system window. Then I drag one from there and drop to shader ...
user avatar
0 votes
0 answers
16 views

How to randomly accelerate particles in a tangential direction, both positively AND negatively?

"tangential_accel_random" will only ever apply positive numbers to my particle acceleration, as far as I can tell. How do I change this?
user avatar
  • 1
2 votes
1 answer
458 views

Are there feature/performance/platform limitations when using the Mono/C# version of Godot?

I've read through the Godot page about differences between the C#/mono version and the standard version (gdscript), and it primarily seems to be focused on the fact that C# is a different language ...
user avatar
  • 1,115
1 vote
1 answer
55 views

Can I disable auto-correct on text fields in Godot?

Background I'm working on a word game and I found it kind of nice to use a hidden LineEdit as my text input. I hide it off screen, force focus on it, and then ...
user avatar
0 votes
1 answer
137 views

High CPU usage with Godot tilemap

I am using Godot as my game engine and I am making a basic 2D game, I have a small map with 1 Player and 5 Enemies walking around in it. The game includes some basic code for walking and shooting at ...
user avatar
  • 45
3 votes
1 answer
44 views

How are GraphNode String IDs supposed to be used

Once you add several GraphNode instances to GraphEdit they get some unusual ID strings surrounded with ...
user avatar
  • 133
1 vote
1 answer
247 views

Why is Area2D not detecting collisions?

I am making a sidescrolling shooter and I am working on the shooting mechanism. I have two scenes, one contains a KinematicBody2D with a Sprite, position2D and a collisionshape2D and a second ...
user avatar
  • 45
0 votes
1 answer
14 views

MeshDataTool corrupting normals. What could be wrong?

When opening a mesh with MeshDataTool, even if I don't do any changes, committing the mesh turns it darker.
user avatar
  • 107
2 votes
1 answer
122 views

How to create large Sidescrolling Map in Godot?

I would like to create a 2D Sidescrolling map, like one for a platformer, but for a shooter game. At first I thought I could just draw a big map based on a tilemap and make the player and the enemies ...
user avatar
  • 45
0 votes
0 answers
40 views

Signal emission problem

I have a simple shoot'em up in space. When enemies collide with missiles, they explode and disappear. I also send a signal (enemyHit) to HUD to update and display the score. I have declared the signal,...
user avatar
1 vote
1 answer
35 views

Godot bake NavMesh not working

I have a layout similar to the official Godot NavMesh example program. It is: ...
user avatar
3 votes
0 answers
155 views

How can I generate random splatter shapes like these?

I am trying to make a tileset. I made some tiles by hand in GIMP using one of the included pencil shapes. I would like to automate the process. They need to fit in the square and have the features you ...
user avatar
  • 107
0 votes
1 answer
152 views

High-resolution bump map displays bad in Godot

I made a model in Blender, with a normal map. There it renders good. Now I imported that model to Godot 3.4 stable, and in the far distance, it looks ugly. If camera is close enough "steps" ...
user avatar
2 votes
1 answer
122 views

Blender`s assign material to face analog in Godot

I am very new to Godot. I am using version 3.4 stable on Windows 10. I made a building in Blender and I wanted to make interior mapping instead of poor 2d windows textures. I found a material for that,...
user avatar
1 vote
0 answers
24 views

When creating a GDNativeLibrary resource, why isn't there an option for the web?

I'm creating a new GDNativeLibrary resource instance. Here's what the property window looks like: Where is the option for the web? Can I even use GDNative with the web export?
user avatar
0 votes
0 answers
147 views

A Godot tool script that adds a button the the inspector that opens a different scene

Here's what I need but can't quite figure out: I want a button on the Inspector of a particular node. When that button is clicked (during the editing, not when the game is running), I want to switch ...
user avatar
0 votes
1 answer
90 views

I am getting the error message "Unexpected token: elif" in godot. Any tips? [closed]

...
user avatar
  • 11
2 votes
1 answer
463 views

Godot 4.0 Mono: How to wait until the frame is done?

According to Google, await ToSignal(GetTree(), "idle_frame"); should wait until the next frame. However, in Godot 4.0's current master branch (mono build!)...
user avatar
1 vote
1 answer
61 views

Label text not updating every frame

So, I want to code something in Godot, but the Label text doesn't get updated every frame. Here's the script I attached: ...
user avatar
0 votes
1 answer
107 views

Godot: Invalid set index error

I'm trying to make UI for my game and making a button that changes its own focus neighbour when pressed: $SettingsButton.focus_neighbour_left = $ItemGrid/Slot2 But ...
user avatar
0 votes
0 answers
86 views

why is my grappling hook pushing me when i flip the character in godot

When i flip the character and use the grappling hook it pushes me away from the grappling hook and not toward. player.gd ...
user avatar
1 vote
1 answer
357 views

How can I bake 2D sprites in Godot at runtime?

I would like to use the technique described here to create a player sprite with unlimited clothing and equipment options (like in Stardew Valley). To elaborate: I want to have a sprite sheet for the ...
user avatar
1 vote
1 answer
66 views

Why does my manual code bone rotation not work when a animation is active/playing?

So, I have a rigged character and created a simple walk animation in blender and export it as gltf 2.0 to godot. And in godot I also via code rotate a bone of that rigged model. The bone rotates ...
user avatar
  • 13
0 votes
0 answers
135 views

What voxel rendering technique is used in Build engine games and how can I replicate that in another engine such as Unity or Godot?

Most information on voxel rendering is focused on heightmaps, but with my current understanding I dont see how one could achieve details like holes using a heightmap. In the below photo: details such ...
user avatar
  • 1
0 votes
1 answer
103 views

How to temporarily set additional system environment variable only in 'play' mode inside godot editor?

I'm learning godot with a laptop that has AMD discrete GPU. My OS is Arch Linux so if I want to use discrete GPU I have to set system environment variable ...
user avatar
  • 21
1 vote
0 answers
106 views

How to create a seamlessly wrapping procedural brick material with a shader?

How do you create a shader that seamlessly wraps a brick pattern around the whole object, so that there are no "Stitches" at any edges/corners? Take this screenshot for example: On the left ...
user avatar
0 votes
0 answers
54 views

Is there a Godot equivalent of VelocityChange (like in Unity3D)?

In my Pong game the pressing of the required key and the actual movement has a delay in b/w. I believe this is because the force is building momentum and then moving, a problem I solve in Unity by ...
user avatar

1
2 3 4 5
7