Game Dev for Noobs

You spawn many enemies. Which is faster?

1 month ago | [YT] | 29



@knowmust6567

Preload of course

2 weeks ago | 1  

@badrumioli

the preload one

1 month ago | 8  

@RiverOfChaos7

We need to keep the variable outside of the function. I'm not even sure there is a practical reason for it to be inside of the function.

1 month ago | 1

@enderger5308

Preload as it A. Loads at compile time and B. Only loads once

1 month ago | 0  

@Colorlavie

Preload !🎉

1 month ago | 0  

@quint174

it should be even faster when you actually define what type the enemy variable is, i know it's set to implicitly type the variable, which is way better than just leaving it untyped, but explicitly typing it (should) make it a bit faster still

1 month ago | 1  

@polkkavr5933

my guess id the one where the var Enemy :=… is outside the function, so you dont have to set that variable 10000 times

1 month ago | 1  

@dyscotopia

Making more friends?

1 month ago | 0  

@drayodev

The one that uses preload :D

1 month ago | 0  

@danielramos-u7y

preload

1 month ago | 0  

@Massive-Aggressive1

the first one

1 month ago | 0  

@GameDevForNoobs

Does Godot cache load? :body-blue-raised-arms:

1 month ago | 0

@Volt-Eye.

Preload

1 month ago | 0  

@leonf8199

cmon dude

1 month ago | 0

@espernova228

You should slow down the transition

1 month ago | 1  

@hanzo-e9p

Hey, I added and preload my spawning nodes to my singleton, is it better than preload on each scene?

1 month ago | 0

@PushSL

preload

1 month ago | 0