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.

11
votes
1answer
2k views

How can I remove Godot's splash screen?

I started using Godot lately (mostly because the editor supports Linux). There is one thing that bothers me: the Godot splash screen. I know that I can (somehow) remove it and I saw something about C ...
7
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
122 views

Concept of “scene” in Godot, misunderstanding

Could anyone clarify a beginner's question in Godot? As in this 3D video tutorial (https://www.youtube.com/watch?v=-D-IcbsdT04), the guy creates one scene for the floor, another scene for the wall, ...
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.
5
votes
2answers
2k 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
254 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 ...
3
votes
2answers
406 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. ...
3
votes
1answer
751 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 ...
3
votes
1answer
475 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 ...
3
votes
1answer
1k 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 ...
3
votes
2answers
2k 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
389 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 ...
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
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 ...
2
votes
3answers
234 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 ...
2
votes
2answers
300 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: ...
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
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 ...
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
1answer
360 views

Why Godot over Cryengine, UE4, Armory3d or Unity3d? [closed]

Godot have a low performance in linux systems and lack of functionalities? This appear not been in account when peoples vote for him over other engines and i wonther whi. I know it is under MIT ...
1
vote
1answer
46 views

Godot: does parse_json accept multiple JSON objects?

If I had a JSON file that had multiple objects, can the method read through without some form of exception?
1
vote
2answers
122 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 ...
1
vote
2answers
542 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
2answers
196 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
182 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: ...
1
vote
1answer
267 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
1answer
74 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....
1
vote
1answer
83 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. ...
1
vote
1answer
421 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
1answer
347 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 ...
1
vote
1answer
362 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 ...
1
vote
1answer
230 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
1answer
387 views

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

I have a simple code which makes a sprite rotate and move, ...
1
vote
2answers
83 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: ...
1
vote
2answers
3k 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
817 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 ...
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
2answers
95 views

Which is the fastest: shaders vs animations / animated images / pixel manipulation?

I'm quite newbie to shader programming. I use Godot engine and after I see what can be done with shaders (eg. http://glslsandbox.com/e#53172.0) I realized that I MUST learn it no matter how hard it ...
0
votes
1answer
952 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 ...