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

pong game godot reset the scene

hello I am currently working on my first game in godot. It is a pong replica with power ups I am currently having difficulty resetting the scene when the score that is specified is reached. This is my code: if(PlayerSore == 10 || OpponentScore ==…
0
votes
2 answers

Instancing a gameobject when powerup is picked up godot

hello I'm making a super pong game that has a power up that adds another ball to the game. The next ball should appear in the center of the screen. extends Node2D var collect = false func _physics_process(delta): …
0
votes
0 answers

How can I find the player scenes x position in another scene?

I have a dedicated scene for my games character. I have another scene for "Level 1." I added a script to the root node of "Level 1." How can I use that script to both write the character node's x position to a variable, and then print something to…
AJN
  • 29
  • 1
  • 3
0
votes
1 answer

Godot save Items i have collected

I am working on a platformer game in Godot Engine where i have a Hub World that will house the entrances to all the individual levels, but i would like to save what items i have collected within the individuals levels so that once i finish the level…
zak_250
  • 9
  • 1
  • 1
0
votes
1 answer

Godot, why does my android export not find/ open files?

I am building an app with a shop system. This involves storing the users coins and what guns they own in files, which work perfectly fine on my PC, but on android. I save the files using the "user://" notation and it still doesn't work on my…
chunkyPug
  • 3
  • 6
0
votes
1 answer

How to return instance of class in its method in godot script

I have class v2 that contains a method Add. This method should return a new instance of v2 my code looks like this class_name v2 var x : float var y : float func _init(_x, _y): x = _x y = _y func Add(v : v2): return v2.new(x +…
0
votes
1 answer

Godot addressing/ accessing instanced objects

I am making a 2D platformer game in Godot, I create an object using the code: if currentPlayers < playerLimit: var person = humanScene.instance() add_child(person) person.position = Vector2(90, 300) currentPlayers += 1 …
chunkyPug
  • 3
  • 6
0
votes
1 answer

I want to see if player is on or below enemy in godot

I want To see if my player is on top or beside the enemy in Godot. I want to kill the player if he goes beside the spider and kill the spider if the player jumps on it. my player and enemy are both KinematicBody2D's. I know how to kill the player or…
Justiniscoding
  • 441
  • 5
  • 19
0
votes
1 answer

How to run query with API rest?

So I am trying to run a query with the firebase rest api using Godot to give you an idea this is the way that I make an update for a document: func update_document(http: HTTPRequest) -> void: var fields = {} fields.Name = {"stringValue":…
0
votes
0 answers

Missing Client Identifier in Firebase?

I'm using Godot, and also I am using Firebase for store some datas. I enabled phone auth, but my problem is why I'm seeing Missing Client Identifier error? But if I add my number to Whitelist, then I don't see any error. This error didn't happen in…
user15157238
0
votes
1 answer

Godot2D How can i make the enemy's attack collision work

I'm making a player's death system, but when the enemy collide with the player, nothing happens, well... it print in log how many life's left but its just it, i have created the area 2D group (Hurtbox) and (power(The enemy's area group)),…
0
votes
1 answer

Can Godot files be implemented in Python3.7.6

Simple question (I hope): Can Godot files be implemented in Python3.7.6? I see that there are modules for accessing Python from Godot, but is there a binding for the opposite usage?
0
votes
1 answer

GUI elements won't keep size and position

I am trying to create a simple UI, but my elements won't keep their position and size. Every time I run the app, I see something different from what I can see in the editor. Editor: App:
Sherlock Holmes
  • 191
  • 1
  • 8
0
votes
0 answers

Trying to implement a double jump function in C# that limits to only 2 jumps in Godot game engine

I'm trying to implement a double jump mechanic in my Godot game using C# and I can get him to jump twice but I can't figure out how to limit the jumps to only 2 times. I tried using a jumpCount int but it was to no avail. I have not been able to…
0
votes
1 answer

Godot: get_node: Node not found: /root/MemoryGame

So, I'm new to Godot and made my first two projects. The first one is a Platformer game, the 2nd one is a Memory Card Game. Both games work fine when I run them separately. Yesterday, I got an idea to put the Memory Card Game into the Platformer…
1 2 3
99
100