I’m struggling on my code.org platform on how to make a delay, as I’m making a shooter game. When I click I want there to be some sort of reloading happening, so it could take me at least 3000ms to reload.
I heard some things about the timeOut() function, but I’m not sure how to use it. I tried many ways, like keeping the timeout outside the if, and inside the if.