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
0
votes
1 answer

How to add Signals to objects created with add_child

I'm looking to create child objects that are duplicates of a pre-existing, using this method in my root class. While it successfully creates a copy of that object in the remote tree during runtime, it is not sending signals like the original object…
0
votes
0 answers

Godot shader with non-uniform skew?

I am trying to make a shader to warp an image in godot, but I only seem to be create uniform skews and all tutorials just show me how to make things wiggle. How can I make the can accomplish what I have in the image below? I can't seem to find…
HeroicNate
  • 63
  • 7
0
votes
0 answers

Why does my secure websocket connection with Godot fail when i connect from Australia to Germany?

please be patient with me because this is my first question ever on this platform. Thanks. This is the code for a minimal server using the secure websocket protocol wss:// in godot (GDScript): Gist on github It works as expected when i connect from…
Zerarez
  • 9
  • 3
0
votes
1 answer

Find first empty slot in an array in Godot 3.2.3

I have an inventory array that I want to find the first empty slot in the said array and put the Resource the player picks up into that slot. I'm a little familiar already with C programming and am pretty sure that a for loop would work nicely, I…
0
votes
1 answer

Change the variable if there is an int input

My objective is, if I type "points" it will show me the content of the variable but if I add an int after it, it will change the value of the variable This is what I have right now: func add_message(text): chatLog.bbcode_text += '\n' …
SynT
  • 1
0
votes
0 answers

Too Many Nodes Slows My Android Godot Game Down

My Game is a modern bubble shooter and i have like 100 bubbles. They all have script but script doesnt have process or physics process. But the game still has like 5 fps on a Samsung S8 Plus. The phone isnt that old. At least for a bubble shooter.…
Gandalf
  • 3
  • 2
0
votes
1 answer

How do I make the Animation Tree play animations from the beginning? Godot 3.2.3

I have set up a simple animation tree. It starts with an idle that has the character doing various things. When I move the character I have it "travel" to a running animation which works great, but when I travel back to idle, the idle animation…
HeroicNate
  • 63
  • 7
0
votes
2 answers

What does func _physics_process(delta), move_and_slide(), Vector2() and do in gdscript?

I'm just started learning to program because I want to learn how to make a game. I choose the Godot engine to start making games but I can't understand what anything does. I have only understood the concept of variables and constants. I'm watching a…
Koro422
  • 1
  • 1
0
votes
1 answer

How to set the texture of a spatial material on a mesh instance in gd script in godot

I have a mesh instance and I want to have a function that takes in a file path of a png file and adds it to spatial material and then adds the material to the mesh instance. I tried using the following: var mat = SpatialMaterial.new() var tex =…
Hopeijay
  • 21
  • 3
0
votes
1 answer

how to execute a function inside the process function of godot every 1min?

I need to implement to deduction coin for every 1 minute from user. I would do this Player.gd var game_started = false var time_start = 0 var time_now = 0 func _process(delta): if game_started == true: …
tree em
  • 20,379
  • 30
  • 92
  • 130
0
votes
1 answer

Godot: directory recursive function stackoverflow

The following function prints the directories and files within a path, I want it to go into the directories and sub directories by using a recursive function. This causes a stackoverflow error. It only works if doesn't call "RecursiveSearch" func…
Alonso
  • 25
  • 3
0
votes
1 answer

How Can I Me And My Friends Connect our Notes App Together

I am trying to make app that you use to wright down your goals and can check off every day that you worked on it. I am going to set it up like a notes app but I want to have it as like a shared notes app so others can see that you are working on…
0
votes
1 answer

godot singleton variables reset between scenes

I'm making a game where I switch scenes every so often. I need variables to safe between these scenes so I made a global singleton named: "global.gd". This is the code: extends Node var money = 1 var lives = 3 The problem is that every time I…
0
votes
1 answer

Godot how to get collision layer of colliding objects programmatically?

I have 3 collision layers: Player Coin Enemy My nodes are colliding well, but when my Player collides with the Coin or the Enemy i can't differentiate between the two of them. Normally i would do this by setting collision groups but if the layers…
jogarcia
  • 2,327
  • 2
  • 19
  • 34
0
votes
0 answers

Godot Project Has 100 Errors When Exported To Xcode [Arm64]

I have been learning how to use Godot and recently I tried to export my project to Xcode to see how my game would look on my phone. When I try to run it, it shows that there are exactly 100 errors. The error code is huge! Ld…
1 2 3
99
100