Page 1 of 1

Circular Transparency

Posted: Tue Feb 05, 2019 7:59 pm
by cloudstrifer
Hi!
I want to create a circular transparency, like Goofy Troop.

My idea is not bad, but it not will work for two players.

https://www.youtube.com/watch?v=oJ_lcxGRb0I

I use a full black background and this tileset to simulate light.
light.png
light.png (16.47 KiB) Viewed 9454 times
Somebody can help me, to make a 2 player solution?

Thank you!

Re: Circular Transparency

Posted: Tue Feb 05, 2019 9:26 pm
by Sik
I don't think I've seen anybody pull it off on Mega Drive, so that should tell you something already (on SNES it's easier as you can exploit its window feature for that purpose).

Only obvious suggestion that comes to my mind is to redraw the tilemap (literally move the holes themselves in it, rather than moving the tilemap). How much accuracy you want here is up to you (if you can do with it not being pixel perfect you can probably find ways to speed it up by cheating on what tiles you draw in it).

Re: Circular Transparency

Posted: Wed Feb 06, 2019 2:08 am
by cloudstrifer
Yes, I made it, and to be a little smooth i used 8 images moving circle 1 pixel to right.
But the big problem will be the second player, I will try it latter.

https://www.youtube.com/watch?v=sVottsqwtyc

Image


Thank you!

Re: Circular Transparency

Posted: Wed Feb 06, 2019 4:16 pm
by Miquel
What Sik is telling you is:
For 1 player: Just create the opaque plus transparent circle on plane A once, then just move plane accordingly with player movement for every frame.
For 2 players: you need to recreate the plane creating two holes FOR EACH FRAME.

Now, my saying, if you go for this technique use tile masking for collisions with both holes. You need to label every tile and consider every possible collision and its result.
Also consider other solutions: using different palettes, light-dark + sprite hiding. Or using the “1 player” solution changing focus between both players on each next frame. Just a bit of mental experimentation will tell you what you want.

Re: Circular Transparency

Posted: Wed Feb 06, 2019 4:36 pm
by Chilly Willy
Or using the “1 player” solution changing focus between both players on each next frame.
This might look even better - it should be darker and a little flickery, as if lit by a flickering torch. He might try this for one player (just turn off the display ever other frame) and see how it looks. If it looks good for 1P, it should be the way to go for 2P.

Re: Circular Transparency

Posted: Wed Feb 06, 2019 9:48 pm
by cloudstrifer
Nice, good ideas.

Thank you!

Re: Circular Transparency

Posted: Mon Mar 29, 2021 4:21 pm
by cloudstrifer
Not solved yet.
Somebody have more ideas?

Thank you!