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, OS X and Linux and can create games targeting PC, mobile and web platforms.

Godot Engine is a fully-featured, MIT licensed 2D and 3D game engine, which can be used to create games, apps and gamedev-related tools. It has been open sourced under the MIT license and is now developed and maintained by the Godot Engine community.

The engine supports multiple scripting languages. Aside form C, VisualScript and C# it also offers it's own programming language called GDScript. GDScript is a dynamically typed scripting language with a Python-like syntax. Alternatively, the developers can use C++ to add or improve functionality.

On 6 July 2023, the Godot Engine contributors released version 4.1 (announcement).

The current stable version is 4.1.1.

Resources

This is a list with a few good resources to know more:

1783 questions
7
votes
3 answers

How can I pause a Thread for some seconds in Godot?

How can I pause execution for a certain amount of time in Godot? I can't really find a clear answer.
MomoVR
  • 113
  • 1
  • 8
7
votes
2 answers

using different programming language in godot game engine?

I want to bind a different programming language to the Godot game engine. Is there an instructional document or video on this topic? For example, how was this project done: godot-rust. If I can learn the basics, I can succeed in working in a…
mrParabol
  • 73
  • 2
  • 6
7
votes
1 answer

Why do some nodes use "position" and others use "rect_position"?

What's the technical reason for this? It seems strange to me that they can't all just use position. Is it a legacy thing?
Buck Russell
  • 131
  • 1
  • 9
7
votes
1 answer

Generating country-shaped geometry on the surface of a sphere in Godot

I am currently working on a game in Godot which involves rendering countries on a globe. I have very little prior experience with Godot, but have experimented with it in the past. I am using this data from Natural Earth for country borders, and have…
TXP Ghost
  • 71
  • 1
7
votes
0 answers

Godot Engine published app gets security alert after adding AdMob

I recently released a simple game made with Godot Engine and after adding the Google AdMob library to display ads, I get this security alert : Your app contains URL credentials, which is often unintentional. Please see this Google Help Center…
PayToPwn
  • 1,238
  • 1
  • 16
  • 29
6
votes
2 answers

how do I detect collision between a kinematicbody 2d(player) node and a rigidbody2d node(mob) in Godot

I have 3 scenes. one that is named "KinematicBody2D.tscn" which a KinematicBody2D node. this scene is a player which moves from left to right across the screen. I also have a scene named "mob.tscn" which is a rigidbody2d node. this scene only has…
Syoma
  • 85
  • 1
  • 1
  • 6
6
votes
1 answer

Godot listening to signals from multiple instances of the same scene

I have the following Scenes: Player Enemy Attack When an Attack collides with the Enemy, the Enemy emits a "onHit" signal. The Player listens for that signal and bounces back. This is all working good, but now if I duplicate the enemy so there are…
DanielRead
  • 2,288
  • 1
  • 23
  • 34
6
votes
1 answer

Using a custom class in Godot

I have a simple network chat program created in Godot that I am using to teach basic encryption to high school students with. I would like to add a custom built encryption class to allow students to create their own cyphers. Here is a simple…
Tristan
  • 153
  • 2
  • 11
6
votes
1 answer

GDScript. How to make your own library in Godot and access it from your game scripts

I wonder how can I create a script, which contains methods I want to use in multiple scripts. I don't think I want to create a global singleton for it, because I am not storing any global data which will be preserved across multiple scenes. I am…
Andrey Kachow
  • 936
  • 7
  • 22
6
votes
0 answers

AttributeError: 'SConsEnvironment' object has no attribute 'android_add_dependency'

I'm trying to compile godot with this module: admob https://github.com/kloder-games/godot-admob But I have this error when I compile: scons platform=android target=release android_arch=arm64v8 scons: Reading SConscript files ... Building for Android…
BossShell
  • 379
  • 3
  • 14
6
votes
1 answer

How do I change sprites in scripts?

I'm trying to make a dating sim as a easy first game programming-wise. I don't know how to change the character sprites inside the scripts. character_sprite.gd extends Sprite var char_tex = load("res://Sprites/Lu2.png") func _ready(): …
Lynn Len
  • 91
  • 1
  • 2
  • 8
6
votes
2 answers

More ideas of how to prevent slope slide down with KinematicBody2D?

I have a basic code below. I am trying that the player not slide down on slopes. My slopes now are 45°. If the player stop movement on slope, it will slide down (maybe because velocity.y += delta * gravity.y). I can get the angle by normal and set…
gcivico
  • 61
  • 3
6
votes
1 answer

Godot engine collision with KinematicBody doesn't work

I was fiddling around with the Godot engine and tried a little game. But I can't seem to get an info on colliding. if is_colliding(): print ("Collision with " + get_collider()) get_node("Sprite").set_texture(walk_cycle_right_1) …
Linuxer4Fun
  • 85
  • 1
  • 6
5
votes
5 answers

Using C# async delays in Godot

I am currently experimenting with Godot C# making a basic shooter and for the gun's fire rate I have been experimenting with different delay systems. Node Timers work although I'm trying to make the script generic, and the Timer calls seem to only…
megehold
  • 55
  • 1
  • 4
5
votes
0 answers

Error message: > Could not create service of type FileHasher using BuildSessionServices.createFileHasher(). > java.io.FileNotFoundException

I've been trying to export my Godot app to a .aab to upload to the play store. I've successfully exported the first version of this, but exporting the second version after some edits to the code causes this error. The edits to the code makes it run…
성문규
  • 51
  • 3