gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Camera Shutter Effect

#23458 - Ethos - Tue Jul 13, 2004 2:37 pm

Does anyone have any idea of how one could implement a "camera shutter" effect using mode 0 or 1, with a text background as my viewable area?

When I say "camera shutter" I mean a black border around the viewable area which grows in thickness until the screen is completely black.

#23459 - poslundc - Tue Jul 13, 2004 3:10 pm

Easiest way would probably be to use a window to specify where the background is visible, and shrink the dimensions of the window each frame.

Dan.

#23467 - johnny_north - Tue Jul 13, 2004 5:07 pm

If you mean an effect similar to the "spotlight" in the early mario games - a way to achieve this is by using the gba's windowing feature, and manipulating the window's dimensions in the hblank. You can get other nice screen wipe effects using this approach as well.

#23512 - Ethos - Wed Jul 14, 2004 3:10 pm

Thanks anyways,

But I've decided to use a different set of transition effects now (mosaic + fade)

Any comments? Suggestions?

http://www.student.cs.uwaterloo.ca/~jtmonagh/Blaster.bin
http://www.student.cs.uwaterloo.ca/~jtmonagh/Blaster.sav (must be loaded)