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
4
votes
2 answers

Feature 'top-level statements' is not available in C# 7.3. Please use language version 9.0 or greater. Godot Question

I am trying to learn how to use Godot, as I find it easier to learn than Unity, and have been following a tutorial on their official documentation page, I've managed to get to the 'Preparing for Collisions' section, and have created the Hit signal,…
Lordimass
  • 97
  • 2
  • 6
4
votes
1 answer

*.import and *.tres files in godotengine

I'm new to godotengine and want to make a project and upload it on github. I just get confused that those *.import files which are created automatically on adding a new assets and *.tres files which we make to save our tileset maps or something else…
4
votes
2 answers

How can I detect mouse input on an Area2D node in Godot (viewport and shape_idx error)?

After testing out a few other engines I've settled into Godot for my game development learning process and have really appreciated the conciseness of GDScript, the node/inheritance structure, and the way observer events are covered by signals. I've…
Sean Simon
  • 43
  • 1
  • 5
4
votes
0 answers

Minimax algorithm AI not picking the correct choice

I have tried to impliment the minimax algorithm with alpha/beta pruning for a TicTacToe game I'm making in the Godot Engine, however, it doesn't seem to work as expected. The AI seems to always pick the next available spot on the board from left to…
4
votes
1 answer

(Godot Engine) Merging more than two polygons using Geometry's merge_polygons_2d() Method

Considering the following scenario: given an n number of Polygon2D nodes that act like "shadows" (black color with halved alpha value), how to combine all of them into an single Polygon2D node using the merge_polygons_2d() method? An example of 3…
KanaszM
  • 151
  • 9
4
votes
1 answer

Close a game in Godot

I'm creating a web game using Godot. For close the game, i tried to use `get_tree().quit()`. If I use it on the IDE, it works. When i tried it on my server (after exported the project) it doesn't work. I'm sure that Exporting setting are okay.…
4
votes
1 answer

Don't know how to reference other scene into script

I can't link SliceAndCoagulatorScene to the script to set its visible to false I've tried get_node, $res://... extends Node2D onready var main_scene = get_node(".") onready var SliceAndCoagulatorScene = get_node("_________") func _ready(): …
4
votes
1 answer

Godot - Speed up the game without breaking physics

I'm making a soccer simulation game and for that I'm using normal 2DBody nodes for the players and ball. But I would like to be able to speed up the game, without breaking the physics and getting other results. To speed up the game I found…
dulvui
  • 122
  • 9
4
votes
1 answer

Godot emit signal defined in another scene

I have a Signal inside a script attached to a node: Game.tscn/Game.cs using Godot; public class Game : Node2D { [Signal] public delegate void AddPowerUp(Powerup powerup); } I try to emit a signal from another…
cress
  • 389
  • 3
  • 13
4
votes
2 answers

Godot - how can I load 7,500,000 tiles without it taking so long?

I have a world that has 7,500,000 tiles in it. The world is 1500x5000 and each tile is 16x16 pixels. If I want to load a game and I just loaded all the tiles that would take a long time. Is there a way just to load the tiles near the player? Like…
jujumumu
  • 350
  • 4
  • 12
4
votes
1 answer

Non-ascii characters get ignored in Godot lable text

I was working on a Hello World scene of Godot. Instead of using "Hello World" as demonstrated in the tutorial, I tried something like "你好世界", but I found that it didn't work. Anything non-ASCII that I typed in the label text input got ignored. How…
satoru
  • 31,822
  • 31
  • 91
  • 141
4
votes
1 answer

Godot - Loop animation from GLB import

In Blender, I modeled, textured and animated an idle animation for a simple robot character for a game in Godot. Using the Blender-gltf exporter by KhronosGroup, I successfully exported the mesh, material and animation into one .glb file, and then…
Carol9009
  • 223
  • 2
  • 12
4
votes
1 answer

Godot extensions c++ modules vs android modules. What is the difference?

Looking at the c++ extension tutorial on godot wiki everything makes perfect sense except the separation dealing with android modules: http://docs.godotengine.org/en/stable/development/cpp/creating_android_modules.html What exactly is the difference…
efel
  • 1,054
  • 3
  • 14
  • 29
3
votes
1 answer

Is there any way in Godot 3.5.x to round corners of images?

Is there a way to do an apply a rounded corner to arbitrary images in Godot? I know we can fake it by adding transparent images over the corners: I know that we can create a panel with a style box flat, and make the corners of the panel rounded.…
Jay
  • 19,649
  • 38
  • 121
  • 184
3
votes
1 answer

How to implement a composable character/skill system in the Godot 4.0 Game Engine?

I am currently experimenting with a prototype for a MOBA style game using Godot. I am struggling to figure out a way to manage the characters and their skills. All characters will have similar attributes (Name, health, run speed, strength and so…
Martin
  • 5,954
  • 5
  • 30
  • 46