Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Perhaps change the routine to increase a timer for the delay for the pepper. Setting a flag when you start, so the routine isn't called multiple times and then when you reach the elapsed time, call the pepper spray and set the flags to a complete state and clear the timer in another routine elsewhere after the pepper count has been decreased. I tend to use this approach in my games.