Comments

Log in with itch.io to leave a comment.

(2 edits)

Hi Shaun, is there any chance to update this shader to work with existing GMS2 versions. On import it converts the project as it's an "old format". Consequently the shader is now broken whereas before it worked flawlessly. Thanks buddy.

*** It was the VCREDIST exe needed from Microsoft ***
*** Not your code at all sorry :-) ***

(1 edit)

For some reason, whenever I make an object dissolve away, the spots that should be empty are being replaced with whatever the 1st color is, making a flat color background instead of nothing. After setting the edge to 0, it turns out that the problem is that it isn't actually dissolving the sprite at all. The effect works properly in terms of the dissolve look, but it's only affecting the sprite's color without changing the alpha from 1 to 0. It works properly when dissolving objects back in, but not when dissolving them away.

(1 edit)

Hey, does this work without color? I can't seem to get it to, I wanted it to look like the top row of your example gif here.

Edit: I figured it out! I have very limited experience with shaders so it took me a bit but, I found the one line of code to remove to make it just transparent. Thanks for this great shader resource!

(5 edits)

I'm using this shader in my project and it worked fine. But images, processed by the shader, started to appear incorrectly, simply after I add a large sprite in my project. Not even after trying using the large sprite. Efforts to fix this were fruitless. Can you help me out, please?

(5 edits)

After adding another sprite to the project, the bug was gone. I think the shader has some calculation problems - I guess, it works incorrectly when it takes a sprite from the game's texture sheet if processing the numbers of the texture's size can't give integer or something.

(1 edit) (+1)

This sounds like a GameMaker cache issue. If importing a big sprite has caused your texture pages to be rearranged it might simply have confused GM's internal knowledge about where a sprite is kept on what sheet. The shader doesn't do *any* calculations as such when it comes to a sprites location or position. It just uses the built in GM functions for finding these things.

Try running the 'clean' option on your project, reloading the IDE, etc. As you discovered, simply adding another sprite was one potential fix.

I'm not discounting the possibility of it being an issue on my code's end but given that it doesn't manually interact with any texture sheet positioning I'm finding it hard to identify what an issue on my end could be.

PS. Apologies for such a late response, I only just caught your comment on one of my videos.

Deleted post

It's been a while now and I can't remember the exact reason, but I believe it was to do with the effect not looking great in areas with mixed alpha. Glad it's working for you anyway!

(+1)

Will this be available for GMS 1.4.x? I'd certainly purchase it if it was, as I'm sure others would too.

(+1)

You know for some reason I thought it wouldn't work but I can't see why not? Will look into it asap.

(+1)

Excellent news 👍

(+1)

Just added this now!