Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Awesome! Cant wait to see what you guys come up with.

Also, I had another question that came up. Is there any way to pause or freeze the wave/jitter animations (or for that matter, the draw anims too) in-place and then resume them when needed? I cant seem to find anything quite like that in the docs.

Hmm... if you set stm.areWeAnimating to false, that might do it! That's the boolean that tells STM to keep animating under Update() if a wave has animation. I should probably rename that variable...

Ah, awesome! It's a private property so I just added a setter but that works perfectly to freeze the wave/jitter anims. It doesn't work for the draw anims, but I tried adding a simple bool called "frozen" and added it to this line in the "GetDeltaTime2" method:

return !applicationFocused || frozen ? 0f : ignoreTimeScale ? Time.unscaledDeltaTime : Time.deltaTime;

It appears to work to freeze the draw anims, but I have to investigate further to see whether or not I'm breaking something else by shoehorning this in.