About 1,090,000 results
Open links in new tab
  1. gdscript - How to reference node in Godot - Stack Overflow

    Jul 8, 2022 · From the point of view of the GDScript language, Script s are classes. However, behind the scenes what happens is that when you instantiate a GDScript Godot will create an …

  2. How do I create a timer in Godot? - Stack Overflow

    May 14, 2022 · How do I create a timer in Godot which destroys the script's object after a given amount of time? I am looking to remove bullets from a game after a while to reduce lag.

  3. How do I detect collisions in Godot? - Stack Overflow

    Oct 27, 2021 · By pressing the "Connect" button, Godot will connect the signal accordingly, creating a method with the provided name in the script of the target node if it does not exist. It …

  4. godot - How can I dynamically instantiate nodes from a scene …

    Apr 21, 2024 · I think this is the same issue I'm stumbling over too. I want to make a strongly typed scene node which can be used both dynamically in code or attached to another scene (if …

  5. How to create an object with gdscript? - Stack Overflow

    Mar 21, 2020 · 2 as mentioned in the title, I want to know how to create a 3d object with gdscript in godot 3.1. I am new to godot. I have searched and followed some tutorials and that really …

  6. godot - What does the "as" keyword do in GDscript? How is it …

    Aug 23, 2023 · Here you are declaring a variable of type RigidBody2D. The type is implicit, as Godot infers it from the value you use to initialize the variable. And - just as before - you are …

  7. godot - getting position of a node in gdscript - Stack Overflow

    Sep 19, 2022 · hi I'm trying to make a frog that jumps when the player gets close I tried this onready var playerpos = get_parent().get_node("player").position And onready var …

  8. Set visibility through script. Godot - Stack Overflow

    May 31, 2021 · Set visibility through script. Godot Asked 4 years, 5 months ago Modified 2 years, 4 months ago Viewed 27k times

  9. godot - How do I change sprites in scripts? - Stack Overflow

    Oct 17, 2018 · 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 …

  10. godot - How do I implement structures in GDScript? - Stack …

    May 7, 2019 · Is there an equivalent of a C# structure/class in GDScript? E.g. struct Player { string Name; int Level; }