Skip to main content

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

Hey!

That's a really good idea, actually! I'm still in the process of having a better outline/dropshadow shader created by a friend of mine, so I'll forward this to em! Right now, the dropshadows are just the main text pass, but with a different colour applied...

The way I'd get this working is to, as you said, add a blur slider, directly in the shader. STM uses fragment shaders, and there's plenty of ways to do gaussian blur in a fragment shader, so... I guess it's a matter of trying to make the two play nice. I've already messaged my friend, so we'll take a look into this on the weekend!


-Kai

(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.