Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [godot]

Godot is a 2D and 3D open source game engine developed by 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.

3
votes
1answer
152 views

How to create a wavy beam?

I want to implement a wavy laser beam similar to the Proton Backpack in Enter the Gungeon. https://youtu.be/wl-o6gbMqFM?t=58 It's easy enough to draw a line from one point to another, but how to get ...
2
votes
1answer
765 views

How can I get the specific tile in a collision with a Tilemap?

I am developing a simple platformer, I have three types of tiles right now: Floor: does nothing on collision. Bad: makes the player lose the game. Good: makes the player beat the game. I am trying ...
0
votes
1answer
22 views

“Loaded resource as image file, this will not work on export” - what does this mean

I'm sure it is something unrelated is why my program won't work, but I still want to know: ...
0
votes
1answer
32 views

How can I reference C# objects in GDScript (and vice versa)?

I am using Godot Engine 3.0.6 Mono for Windows x64. I am prototyping the majority of my project in C# before I rewrite the game in C++ for release. I installed this plugin mostly to help with testing ...
0
votes
1answer
28 views

Godot 3: How to add images without creating scenes?

To add images, as far as I know you create a sprite in godot, but I don't want to do that, I'd like to do it pro grammatically using arrays, the reason is I'm creating a card game and I don't want to ...
0
votes
1answer
114 views

Programmatically created instance does not execute any code

I've created a new instance, positioned it, and added it to the scene like this: ...
2
votes
0answers
735 views

How do I attach the Visual Studio Code debugger to Godot

At 3.0 Godot now supports C# and encourages the use of Visual Studio Code to edit this code. It is not clear how to attach VS Code so that we an apply breakpoints and debug a project at runtime. I ...
2
votes
0answers
309 views

Is the position of a control relative to its anchor in Godot engine?

I'm trying to place a button on the bottom right corner of the screen, so I tried to put all the Anchor parameters in the inspector to the value "End" but the position still needs to be specified ...
2
votes
0answers
333 views

Why is my 2D mouse aim not working properly?

I'm trying to program 2D mouse aim, where the arms and the gun in the arms rotates to point at the mouse. But for some reason, the arms and gun rotate and do not follow the mouse position. The each ...
1
vote
0answers
16 views

Godot - Is there a way to pass a specific subclass of Node to a GNative C++ class?

I have a GDNative class that looks like this: ...
1
vote
0answers
54 views

Playing an animation in Godot

I have been working on making a platformer in Godot but can't seem to get a walk cycle to play when I press left or right. ...
1
vote
0answers
206 views

How do I use get_action_strength in Godot?

I get the error: Invalid call. Nonexistent function 'get_action_strength' in base 'InputDefault'. ...
1
vote
0answers
311 views

How can I achieve dynamic pathfinding in Godot?

I am new to Godot and trying to implement dynamic pathfinding on a 2D map which includes both static obstacles and moving units. As I understand it, Godot's NavMesh makes it almost trivial to generate ...
1
vote
0answers
395 views

Large Scale GIS in a AAA-Quality Game Engine? (Unreal, Cryengine, Unity, Etc.)

I am working on a new simulation project that requires large scale, real-world terrain and imagery (GIS). By large scale, I mean that I would like to support databases that cover something on the ...
1
vote
0answers
124 views

Game “Hocus”: How to do the path finding?

I rebuild popular apps to get good at Godot. This game Hocus poses a challenge in terms of path finding. I have a solution, but as the illusions scale, it becomes ridiculously time-consuming to set up....
1
vote
0answers
295 views

Rotating RigidBody2Ds in Godot

I am practising programming games with the Godot Engine and I've been having some issues with RigidBody2Ds. In this case I have a ...
1
vote
0answers
49 views

2D: Scaling a character with multiple RigidBody2Ds?

So, this example is in the Godot Engine, but other engines porbably have this kind of problem, too: I have a character with multiple RigidBody2Ds, that also has a ...
1
vote
0answers
89 views

How to handle multiple clipping rectangles in a CanvasItem?

Let's say I have a CanvasItem that needs to draw the background first, occupying the entire item rect, and then draw all its content within a smaller rect leaving a margin. How should this be done in ...
1
vote
0answers
107 views

Using binary space partition to lay out scenes in game

Q: How can I randomly lay out these house scenes in the larger scene such that they don't overlap? I'm using the Godot Engine to create a little 2D RPG kind of game. I'm laying out a village in a ...
0
votes
0answers
6 views

How to control kinematics articulations via GDScript?

I have seen that Godot only plays an "animation", that is, it only executes the sequence that was pre-defined in the file (for example, a DAE made in Blender). For example, a rigging of a hand with ...
0
votes
0answers
29 views

Godot: 'is_on_floor' problem

I have a character in a basic platformer game and am having trouble. Whenever my character stands over two tiles on a tilemap and appears to be directly colliding with them the character's ...
0
votes
0answers
32 views

How do i get effect when gems come together in godot?

I'm create gems puzzle game, In my game there is requirement that 2x2 matrix gem will group and then it will convert in power gem. check below image. I'm new in game development, so anyone can point ...
0
votes
0answers
32 views

How to stack shaders in Godot?

I have a CanvasLayer singleton that I am using for transition effects between scenes in my game. This CavasLayer contains a ...
0
votes
0answers
32 views
0
votes
0answers
23 views

Godot - How to set the AudioStreamPlayer to switch between tracks

Conditional Music Playback What's important here is that I know how to switch the track that's being played back to another if some condition is met in the scene. If possible I also want to know ...
0
votes
0answers
44 views

Godot: Possible to create a 2D tilemap and set it as a texture for a 3D surface?

If I created tilemap of some sort of pattern or image and wanted to set it as the texture of a 3d surface or 3d model, how would I do it?
0
votes
0answers
72 views

How to get one KinematicBody2D to push another?

I am working in Godot 3, where my player is a KinematicBody2D. When I collide with a block which is also a KinematicBody2D I'd ...
0
votes
0answers
65 views
0
votes
0answers
179 views

Dissolving fog of war when entering a room

I want to achieve a similar effect to what you see in the following clip from Enter the Gungeon. When a character enters a new area, I want a dissolving fog of war which begins dissolving at the ...
0
votes
0answers
43 views

How do I lessen the scale of the trail on godot and remove the flashing on the godot tutorial?

On the godot first game tutorial the trail node is showing up as a big flashing player character. It's supposed to be the same size and trail behind the player.
0
votes
0answers
399 views

Is Godot's NavMesh viable for dynamic pathfinding (e.g. avoiding moving enemies)?

I am a novice (read: low-budget) designer looking at moving from Pygame to a real engine, and between Unity and Godot it looks like the latter has a much better 2D engine [1, 2, 3]. I would be happy ...
0
votes
0answers
254 views

How to detect sprite overlap in Godot?

I am trying to check for pixel-perfect overlap between my player sprite and my enemy sprite. Because this kind of thing is computationally expensive, I only plan to do it if the bounding boxes of the ...