gdscript Questions

1

Solved

In my 2D game player has the ability to destroy crates, objects with two collision shapes. When destroyed, crate spawn items that also have collision shapes. But when the following function called ...
Bonaparte asked 1/8, 2020 at 14:19

1

Solved

I wonder how can I create a script, which contains methods I want to use in multiple scripts. I don't think I want to create a global singleton for it, because I am not storing any global data whic...
Embark asked 25/7, 2020 at 10:45

1

Solved

I know it's possible to slice an array in python by array[2:4]. The way I get around this is to just loop through the indexes I want and append them to the new_list. This way requires more work is ...
Conaway asked 13/2, 2020 at 0:6

1

Solved

Is there an equivalent of a C# structure/class in GDScript? E.g. struct Player { string Name; int Level; }
Kan asked 7/5, 2019 at 12:25

1

Solved

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 Sprite var char_tex = load...
Lepper asked 17/10, 2018 at 0:54

2

I am making a 2D platformer in Godot 3.0 and I want to have the player throw/shoot items using the mouse to aim (similar to bows and guns in Terraria). How would I go about doing this? I am using g...
Godewyn asked 25/8, 2018 at 14:37

1

Solved

I was fiddling around with the Godot engine and tried a little game. But I can't seem to get an info on colliding. if is_colliding(): print ("Collision with " + get_collider()) get_node("Sprit...
Monoxide asked 28/12, 2016 at 15:38

© 2022 - 2024 — McMap. All rights reserved.