Make a 3D Top Down Shooter with Godot - Part 3.1 Random Spawning

  Рет қаралды 1,995

Age of Asparagus

Age of Asparagus

Күн бұрын

Пікірлер: 3
@nicklansbury3166
@nicklansbury3166 3 жыл бұрын
This is an excellent series. Thank you.
@AgeOfAsparagus
@AgeOfAsparagus 3 жыл бұрын
Thanks for the comment!
@DigitalImpostor1
@DigitalImpostor1 2 жыл бұрын
If you using godot 4.0 Beta 11 and probably newest betas these are solutions for this video. Ther is a bug which so far it isn't resolved since Godot 4.0 Alpha 3, still dosen't work in Godot in 4.0 Beta 11 You can't use "not" or "!" infront of Array if that array is "var", it only works when it is "const". GDScript 2.0: Can't use not operator (!) with String, Dictionary, or Array unless const. 1* 5:10. # If that bug will be resolved code below should work in future. # func get_next_random_map_coord(): # if not random_map_coords: # fill_map_coords_array() # return random_map_coords.pop_front() But below you will find two solutions for his problem. I was recomended 2 solutions to solve this problem. * First solution similar to orginal code, insted of using 'not' i should use 'is_empty()'. # if random_map_coords.is_empty(): # fill_map_coords_array() # return random_map_coords.pop_front() ** Second solution is to use the ternary operator. In this case you would check the lenght of the array. # func get_next_random_map_coord(): # return random_map_coords.pop_front() if random_map_coords.size()>0 else fill_map_coords_array() I was informed those two options are best solution because this way will make your code more readable and clean. I have used first solution and everything works fine for me!. 2* 6:00 In Spawner gdscript add this: @onready var navmap = $"../NavigationRegion3D"
How to Procedurally Generate Simple 3D Levels in Godot
8:18
TheBuffED
Рет қаралды 17 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Make a 3D Top Down Shooter with Godot - Part 3.9 Wave Difficulty
20:44
Age of Asparagus
Рет қаралды 1,2 М.
Make a 3D Top Down Shooter with Godot - Part 3.6 Heads up Display (1 of 2)
15:04
Make a 3D Top Down Shooter with Godot - Part 2.7 Loose Ends
25:14
Age of Asparagus
Рет қаралды 1,1 М.
Make a 3D Top Down Shooter with Godot - Part 3.8 Gun Variations (2 of 2)
20:56
Make a 3D Top Down Shooter with Godot - Part 2.3 Color Variations
21:18
Make a 3D Top Down Shooter with Godot - Part 3.10 Drops & Pickups (1 of 2)
16:53
Create Your Game World with Just 4 Clicks
0:31
Procedural Worlds
Рет қаралды 110 М.
Make a 3D Top Down Shooter with Godot - Part 3.12 Title and Menu Scene
18:59
How to make a grabbing system in GODOT 4.0 (LINK IN DESC)
1:34