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
2answers
384 views

Godot: What options are there for removing the filtering or anti-aliasing from text

If I were to start making a pixel-art game with the Godot engine, what options do I have for removing the filtering or anti-aliasing from text? EDIT: I want to know how to remove the AA from ...
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 ...
2
votes
3answers
457 views

Godot 3.0 Constant 2D Angular Velocity

I am making a Top-Down shooter in Godot 3.0 on Linux. I would like to have my character rotate to face the mouse-pointer at a constant speed, and have rotation speed power-ups that allow the player ...
1
vote
1answer
88 views

How to synchronize moving hazards?

I am trying to implement a saw blade hazard in my platformer. The saw blade simply moves from point A to point B, and back, at constant velocity. (Let's assume all saw blades move at the same velocity....
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
2answers
416 views

How do I get the GUI to draw above the kinematic bodies when their z_index is changed?

Currently the Labels in the GUI are below the player and other objects, so the player appears above them. How can this be fixed? ...
1
vote
1answer
119 views

How can I make an object rotate a certain number of degrees per second within _physics_process?

I used delta to help with this but the object ended up rotation to much within a second. ...
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 ...
-1
votes
1answer
153 views

Converting code to work in godot with sliders

I have some Fragmentarium code that I would like to convert so it will work in Godot anyone have any ideas how I can do this? The code is below: ...
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: ...
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'. ...
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.
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 ...
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 ...
1
vote
1answer
220 views

Godot installation errors: cache directory path, EditorSettings config path

I am using Windows 7. After installing Godot from a browser, I get two errors: ...
2
votes
1answer
627 views

How to expose a child node’s texture from the parent in Godot

I built a simple scene that I instanciate at will. Simply a KinematicBody2D as root, containing a Sprite and a ...
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
1answer
460 views

How can I properly add material textures to my model?

This is the first time I'm doing game development and I decided to pick Godot engine. I downloaded some object on the internet for my initiation learning. There are four files: throp_srub.obj ...
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
2answers
386 views

GODOT Change scene in node

I will change a scene on button click. But not change the main scene with button. Node structure: main - scene (with childs) - button button.gd: ...
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
1answer
323 views

Godot radial TextureProgress does not fully fill in after value of 61?

So i've been trying to create a radial TextureProgress node in Godot engine. I created two simple png textures of two different colored circles. Both textures are the same size and contain alpha ...
1
vote
2answers
701 views

How to Implement Screen Freeze in Godot

Many 2D games have an intentional screen freeze (say, 75 milliseconds) when the player takes or deals damage. During this freeze, all physics and animation processing stops. How can one implement a ...
1
vote
1answer
470 views

Godot 3 - Trying to make a character dash (wavedash)

So, I'm trying to make a character do a wavedash in Godot 3 and I don't know what I'm missing here. When I press 'Z', the character should burst speed and then a few miliseconds later it should ...
3
votes
1answer
618 views

How to Hold on Final Frame of Animation in Godot

I am learning Godot 3.0 and I have a question concerning animation. I have a player object whose node structure is KinematicBody2D > Sprite > AnimationPlayer. In the AnimationPlayer, I have ascend ...
1
vote
1answer
246 views

Algorithm for fitting geometrical 2d shapes like in the android game Six! (or Tetris)?

In the game Six!, there's a perfectly rectangular tower of geometrical 2d shapes, that you destroy on tap to reach the ground with your player. The easy way would be to design the levels by hand. ...
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 ...
3
votes
2answers
410 views

Transform.LookingAt() does nothing

To get used to how Godot transforms work, I am attempting to write an orbit control. The goal is for it to behave similarly to the Godot viewport. So far I have the positioning of my camera working. ...
1
vote
1answer
475 views

Godot 3, multiplying by delta not making the object to move

I have a simple code which makes a sprite rotate and move, ...
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 ...
4
votes
1answer
2k views

How do I access a variable from my code in Godot's editor?

In Godot, I have a node with a variable that I often need to tweak for balancing purposes. It would be a lot easier to manage if I could modify it inside the editor instead of the code. How would I ...
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 ...
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 ...
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 ...
5
votes
2answers
3k views

Algorithm for a rain effect (Shaders)

I'm trying to implement a rain effect using shader, I use godot 3-alpha, which uses a simplified GLSL 3.0 language. But I'm just finding very complex examples for me, I understand little about shaders,...
3
votes
2answers
262 views

How to pass the correct data into a continuous world

I'm having a hard time implementing the player moving around my world of 2048x2048 tiles that is generated using a noise function. I'm in it for weeks, and I can not, I mess around with the ...
0
votes
2answers
3k views

How do I convert degrees to radians and vice versa in Godot?

In a game I'm toying with in Godot engine I have angles given in degrees in some places and angles given in radians in other places. Sometimes I need to mix both angles (ie. add them). What built-in ...
3
votes
2answers
3k views

How to transfer a variable from script to another in Godot

I have 3 sprites A, B and C, each one has area2d attached to it and collision shape the script for A ...
2
votes
2answers
1k views

How to check if objects are hidden in godot

I have multiple objects, each has area2d and collision shape, I click it, I hide it. Now, I create script and attach it to the main Node2d with the following ...
3
votes
1answer
2k views

Godot, hide objects

Currently the way I do it, is setup an Area2d and a collision shape child for each individual node and then I attach a script to the area2d ...
1
vote
2answers
86 views

How is ball_pos calculated

I'm new to game development and I'm trying to build my first Pong game on the Godot engine. the tutorial I'm following is given below. Simple Pong Game What I don't understand is the line: ...
3
votes
1answer
428 views

SpriteSheets with XML and without XML

I'm very new to game development, and I'm working with Godot engine. I'm making a platform game and I downloaded a package from the web with assets, it contained ...
1
vote
2answers
5k views

How do I add an object to the node tree at a specific position

I'm making a skiing game, and a part of that is programmatically adding snow to the scene in a specific place. It will all be the child of a single node. I was looking through the Flappy Bird code ...
1
vote
1answer
896 views

2d game with 3d js. game engine

I'm trying to understand if it's possible to create a game where the player can switch between 2d (strategic/bird view) and 3d (actual gameplay) using only the 3d supported JS/HTML5 game engine, like ...
0
votes
1answer
1k views

How can I play a video in a Godot game?

I'd like to know if and how it is possible for me to play a video in my Godot game. Specifically I'd like to know what video file format I need to use and what code I have to write to play that video ...
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 ...
3
votes
1answer
2k views

How do I decrease the scale of an instanced node or scene?

I'm trying to decrease size of instanced RigidBody2D scene, through code. With scale(), I'm trying to decrease the size of the ...
8
votes
1answer
3k views

How do I programatically lay tiles with the Godot engine?

I am completely new to Godot Engine, and quite an amateur in game development, in general. I have a small project where I want to implement a procedurally generated level, and for that I'd like to be ...
5
votes
1answer
2k views

GET and POST requests in gdscript

How do I perform get and post requests from Gdscript in Godot? I am trying to get a map API and use it in the game.