Pistol Cooldown and physical bullet

Hi @SayHiToMePls,

So using setTimeout inside the update loop is a no no, since a new timeout will start on each and every frame.

In general setTimeout should be avoided since it will fire even when the window is minimized/ is not focused.

Here is a different way to keep track of time, that can easily work with the script update method:

1 Like