Questions tagged [gdscript]

GDScript is a high-level, progressively typed programming language designed to work with the Godot Engine. It uses a syntax similar to Python (blocks are indent-based and many keywords are similar).

GDScript is a high-level, progressively typed programming language. It uses a syntax similar to (blocks are indent-based and many keywords are similar). Its goal is to be optimized for and tightly integrated with Godot Engine, allowing great flexibility for content creation and integration.

839 questions
0
votes
1 answer

Paint tilemap around the player

In the last days I did it here: https://github.com/PerduGames/SoftNoise-GDScript- and now I can generate my "infinite" maps, however I have problems dealing with the generation of only parts of it as the player moves in a 2D scenario in…
PerduGames
  • 1,108
  • 8
  • 19
0
votes
1 answer

is there a way to add multiple functions to a button node in godot

I am trying to add two different functions to a button node in godot. I would like it to show a message when left clicked and make the sprite it's attached to disappear when it's right clicked. Is there a way to do this in gdscript?
-1
votes
0 answers

How to make some meshes covering UI?

One of the mechanics in my game needs to make some meshes cover UI. Mb layers will help or not.
-1
votes
1 answer

How can I impliment a reset on behaviours in my behaviour tree

I have created a simple behaviour tree in godot using nodes, I have created the basic stuff that is needed in a behaviour tree, root, selector, sequence I also have leaf and condition nodes, now the issue I am facing is that when I have two…
Dragon20C
  • 307
  • 2
  • 11
-1
votes
1 answer

Does anyone know how to make Nuclear Throne or Enter The Gungeon camera movement in platformer in Godot?

When I writing my own script for this movement camera just flies away I tried many variants but they dont work Here`s script: extends Camera2D const smooth_lean := 10.0 const scale_lean := 0.2 func lean_camera_towards_mouse_(delta:float) -> void: …
-1
votes
1 answer

adding number of enemies on godot version 3.5

so I have been developing a basic game in Godot (I am a beginner) I have an enemy scene and a level scene I want to add a lot of enemies to my level scene one way to do that is to attach the enemy scene as a child of the level scene and duplicate it…
Abhiram
  • 145
  • 1
  • 1
  • 13
-1
votes
1 answer

How to code a pathfinding player in godot using A*?

Iam nooby in godot, I have to use A* to traslate the player to the goal position, but I do not know how to start, pls help!! basically I have just 2 tiles in the tilemap, 1 of them is allowed to pass over it, I have to extract I guess the allowed…
-1
votes
1 answer

Why is my function returning null/nil?? - Godot

So, I'm trying to make a function that returns a Dictionary and for some reason it is returning Nil every time I use it. Even though all the endings are returning something! I've restarted the editor and tried some debugging, but couldn't get it to…
FunFox
  • 37
  • 6
-1
votes
1 answer

Player Stops Moving After a few seconds(3D)

im trying to make a 3d fighting game, when i start it the player can move around like normal, but after a few seconds the player just freezes, the animations work fine, but the player will just freeze in place. i looked through the code a bunch of…
-1
votes
1 answer

Godot Game Engine, get_tile() function of TileMap node always return -1 (Invalid cell) no matter where the position of the global mouse is

enter image description here The TileMap has Grass Tiles on every 50x50 corner of the map. yet when the function of gettiles() argument is inserted with the tile position from the world to map position of global mouse position from…
Qri_dev
  • 9
  • 3
-1
votes
1 answer

indentation problems in godot

so Im making a wave shooter game and I got these bugs that I do not know how to fix this it says unexpected indentation and Ive tried every possible solution yes I do know that gd script is similar to python and its indent sensitive don't tell me…
-1
votes
1 answer

Getting this error "add_child: Parameter "p_child" is null" and can't seem to track it down

add_child: Parameter "p_child" is null I suspect this is a Godot editor error because the game runs fine. This one is hard to describe but basically I have a "memory" card game that runs from a grid. You select your difficulty and then press New…
Buck Russell
  • 131
  • 1
  • 9
-1
votes
1 answer

Stack overflow in GDScript

I faced a stack overflow problem in GDScript. Debugger (Code to reproduce :) extends Node class_name MatchSession func add_child(ch, un=true): add_child(ch, un) if get_child_count() == 2: _start_match_session()
-1
votes
1 answer

Godot save select screen

What would be the best way to create a save select screen with more than 1 selectable save file, so far i have managed to get one save file working but i don't know how i would manage more than one of them, saving to it and loading that particular…
zak_250
  • 9
  • 1
  • 1
-1
votes
2 answers

Error message "Invalid set index 'text' (on base: "null instance") with value of type 'String' " when trying to change the text of a label

i am trying to update the text of a label but keep getting the above error message. i don't know what i am doing wrong. here is my code: extends Node var PlayerScore = 0 var EnemyScore = 0 func _on_Left_body_entered(body): $Ball.position =…
1 2 3
55
56