Post

CodeRed
CodeRed@CodeRed_dev·
Godot can't comment out code 😭 How am I supposed to procrastinate on my code now?
CodeRed tweet media
English
72
16
1.2K
98.6K
CodeRed
CodeRed@CodeRed_dev·
I added f to the float and got and got an error what a world we live in 🥲
CodeRed tweet media
English
8
1
152
14.4K
CodeRed
CodeRed@CodeRed_dev·
The only advantage I think Gd script has is that writing it is shorter than C#.
English
10
0
112
13.7K
The Mad Tinkerer
The Mad Tinkerer@MadTinkerer·
@CodeRed_dev You want to write var dirX : float = 0.0 or var dirX := 0.0 In the second case it will cast it as a float. If you write := 0 instead it will cast it as an integer. Not everything can be automatically typecast like that, but most things can.
English
0
0
7
274
Prime
Prime@o0OPrimeO0o·
@CodeRed_dev ngl I do wish Godot ignored the f like it does the ; at the end of a line.
English
0
0
0
144
Paylaş