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.

1
vote
3answers
81 views

How to accurately capture the direction in which the mouse moves?

I used to play this game on Kongregate called Death vs Monstars. A tl;dp (too long; didn't play) explanation of the mechanics is that the character you control follows your mouse cursor. Your ...
2
votes
2answers
933 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 ...
3
votes
1answer
174 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 ...
1
vote
1answer
27 views

Non-Uniform Random Placement of Sprites

I'm creating a space game in Godot that has procedurally generated nebulae. A nebula is comprised of between 50 and 200 child particles, all with the same shader assigned to them which creates an ...
0
votes
1answer
59 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
1answer
131 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
55 views

trying to create a triangle with procedural code

Using Godot3, I have a camera and added a MeshInstance node to the Spatial node and attached this script. Why am I not seeing any triangle yet? ...
2
votes
0answers
471 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 ...
2
votes
0answers
940 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
408 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
348 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
32 views

Facebook login using Godot 3.1 in iOS

In my game I have to integrate Facebook login. I searched about custom modules and all. I found one but it not working in ios and its for older version. Any help would be appreciated
1
vote
0answers
33 views

How to export an IK structure created in Blender 2.8 to Godot 3.1?

I created this IK bone structure in Blender 2.8 and exported as .escn As you can see, in Blender it's working ok. Now, how to use it in Godot? I've tried export ...
1
vote
0answers
76 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
301 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
465 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
127 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
362 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
57 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
96 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
128 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
29 views

Godot 3.1: How do I instance a script?

I have a Paddle scene with an attached script. Within my game I want 2 paddles, one on the left and one on the right. I can instance the Paddle scene into LeftPaddle and RightPaddle no problem, but ...
0
votes
0answers
16 views

How can I get from which node a signal was recieved?

I want to simplify my code for a scene I have that could have many buttons which each have similar behavior. One solution I thought of was to connect to each of the buttons and their signals and just ...
0
votes
0answers
26 views

Godot: Using an argument's methods as kwarg

I downloaded and tried out the Rakugo addon out of the box and I ran into this problem: 'Parser Error: Identifier 'node' is not declared in current scope' If you look you can see that node is an ...
0
votes
0answers
86 views

How do I program a fan in a platformer game?

Fan physics I have a platformer game and want to have fans in it that blow in a given direction and if the player presses the jump button they can go even further. How do I do this? side note: I ...
0
votes
0answers
37 views

How to rotate after a rotation in Godot / GdScript?

This 3D mesh is rotated by 45 degrees on the Y-axis. The camera follows the same rotation, resulting in these images Now I want to make the mesh rotating parallel to the camera. That is, if the ...
0
votes
0answers
22 views

Godot: How do I change my icon to my export

Changing My Icon I want to change the file icon to my exported project. After reading the official documentation and downloading and trying both versions of rcedit in the editor it did not work. ...
0
votes
0answers
57 views

How to rotate parent and child nodes in Godot 3.1?

I trying to create a mechanic in which a group of sprites controlled by a parent (Area2D) node will rotate. Not in place, but like the face of a clock. Also in a counter clock wise direction. ...
0
votes
0answers
29 views

Godot: How do I instance a file?

File Instancing I am working with SMRT, a plug-in for godot engine. I have been wanting to switch out a language file with another as the game progresses. My problem is that I don't know how to ...
0
votes
0answers
28 views

(Godot 3.1) Help with sprite combination mechanic

I'm in a bit of a spot with a mechanic I want to implement for a grid based puzzle game. I've been trying to approach it through different means, but nothing so far has worked. Essentially, I have ...
0
votes
0answers
15 views

Godot: How to maintain constant inertia

Inertia If I have a platform moving vertically I want the player to jump onto it without it losing its motion and slowing down or stopping. I have tried looking at the settings to CollisionShape2D ...
0
votes
0answers
47 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: ...
0
votes
0answers
8 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
37 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
71 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
38 views
0
votes
0answers
101 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
202 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
223 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
47 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
537 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 ...