Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(4 edits)

I noticed that if I have an actor firing bullets with a wait, if I repeatedly press start the bullets are fired continuously without pause. I cannot solve this in any way. I have noticed the same problem in many games made with gb studio.

I've noticed that too. It won't have that problem if you attach a timer script instead, but you can only have four timers running at once.

thanks for the reply, all the projects I have seen so far have this flaw, I will try to use timers

(1 edit)

Another thing you could do is add a loop like this:


Just replace 69 with the number of frames you wish to pass until the next part of the script runs (1 second is around 60 frames).

What kind of event would it be?

(+1)

Here's another idea. This might be the best one yet.

The current GB Studio version has a "Script Lock" event that pauses everything except projectile motion and sprite animation. If you place that before your dialogue event, you won't have to worry about bullets firing too soon!

(-1)

Sounds great, I don’t know much about the latest versions of gb studio, because I’m stuck on 3.0 for a game I’m making