Background Color Change (FlashPunk)

From Flash Game Dojo

Jump to: navigation, search
FlashPunk.png
More Snippets
Flixel
FlashPunk

To change the background color in FlashPunk, just assign FP.screen.color to whatever color value you want at any time.

// Make the background color full red.
FP.screen.color = 0xFF0000;
Personal tools