Log In  

Cart #vignette-1 | 2020-08-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Just a simple vignette fade effect (like on loony tunes cartoons, that circular fade in/out).

Use X to open the vignette, Z to close it.
Arrow keys move the smiley face.

Can also be used to create a fake flashlight effect.

The code is very simple and commented, so it can be easily modified/repurposed.
The vignette works with a sprite that you can customize (to create other shapes).
Mine uses 4 sprite slots on the sprite sheet, but you could easily make it work with only one if you really need to save sprites. Just remember to also customize the draw_vignette function to make it work with different sized sprites.

P#80866 2020-08-16 23:41 ( Edited 2020-08-17 00:21)

1

Hey! Thanks for this, was just going to do something similar, this works great! :)

Working on cleaning up an old game, so this makes it a lot nicer :)

P#80872 2020-08-17 07:18 ( Edited 2020-08-17 07:18)

Sweet! I'm glad it helped you :D Your game is looking great!

P#80887 2020-08-17 17:02
1

This is great, thank you! I'm using it for level transitions in my prototype game

P#125214 2023-02-03 02:14
1

Wow that game looks fun! :D let me know when you release it, so I can try it out!

P#125242 2023-02-03 19:10
1

interested people should check out this excellent exploration of techniques: https://www.lexaloffle.com/bbs/?tid=46286

P#125271 2023-02-04 03:26
1

That is true, @merwok. It was indeed an interest back then most of us participated in the conversation.

I did some work along this line 3-years ago, @profpatonildo, just using the circ() command.

https://www.lexaloffle.com/bbs/?pid=70990

P#125272 2023-02-04 03:33

Nice! That's helpful!

P#125407 2023-02-06 13:02

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 22:28:40 | 0.041s | Q:27