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
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 ...
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. ...
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, ...
2
votes
1answer
766 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
756 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
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 ...
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 ...
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 ...
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 ...
-1
votes
2answers
2k 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
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 ...
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
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 ...
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: ...
3
votes
1answer
390 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
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 ...
0
votes
1answer
953 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
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 ...
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 ...
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
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.
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 ...