You don't to write $Timer.wait_time = 5, because you don't choose One Shot. One Shot is for only one time. How do you avoid overlappping between all objects (and player) while random spawning?
You can make an array called 'positions' then at every spawn you append the position to all position of spawn objects. Then you say 'for pos in positions: If vector2(rand_x,rand_y) == pos: randomise() Rand_x = # use the rand_range code Rand_y = #use the rand_range code' For more understanding join my discord The link is in the description
Thanks! Your video helped me a lot
What algorithm did you use to make the object spawn randomly?
Thank you, you're a godssend
Thanks a lot dude
You don't to write $Timer.wait_time = 5, because you don't choose One Shot. One Shot is for only one time. How do you avoid overlappping between all objects (and player) while random spawning?
You can make an array called 'positions' then at every spawn you append the position to all position of spawn objects.
Then you say
'for pos in positions:
If vector2(rand_x,rand_y) == pos:
randomise()
Rand_x = # use the rand_range code
Rand_y = #use the rand_range code'
For more understanding join my discord
The link is in the description
Yo, Im on godot 4, and I REALLY need a solution ASAP, gotta use this for an assignment for tommorrow, please reply.
haha
its not working for me! Ive watched every single tutorial of instancing on youtube and it still doesnt work!
I hope you are not using godot 4
@@Daviesdev no! btw got it working. Just had to figure it out myself
and what is the answer ?
@@36OLink1
Good job bro
Thanks
very useful