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 ...
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...
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 ...
1
Solved
Is there an equivalent of a C# structure/class in GDScript?
E.g.
struct Player
{
string Name;
int Level;
}
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...
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...
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...
© 2022 - 2024 — McMap. All rights reserved.