Flixel Power Tools FlxDisplay
Back to the Flixel Power Tools
Contains functions that help with the display of sprites. Includes:
- Alpha Masks – Blend two images together, or cut holes into sprites with alpha channels
- Screen Wrap – Make sure a sprite stays within the boundary of a screen
- Space – Space a group of sprites out an equal distance apart from each other
- Screen Center – A quick way to center a sprite on the screen horizontally, vertically or both
Screen Shot
Code Example
// The picture
picture = new FlxSprite(0, 0, AssetsRegistry.acrylBladeRunnerPNG);
// The mask
mask = new FlxSprite(0, 0, AssetsRegistry.alphaMaskPNG);
// The final display
output = new FlxSprite(0, 22);
FlxDisplay.alphaMaskFlxSprite(picture, mask, output);
Recent Flixel Power Tool Posts
- Flixel Power Tools v1.9 Released
- Flixel Power Tools v1.8 Released - Let's get clicky
- Flixel Power Tools v1.7 - Kaboom!
- Flixel Power Tools v1.6 released including FlxControl
- Flixel Power Tools v1.5 - A monster of an update!
- FlxScreenGrab and FlxScrollZone added to Flixel Power Tools
- Flixel Power Tools v1.3 - Now Flixel 2.5 compatible!
- FlxHealthBar added to Flixel Power Tools
Make yourself heard
FPT Classes
Hire Us
All about Photon Storm and our
HTML5 game development services
Recent Posts
OurGames
Filter our Content
- ActionScript3
- Art
- Cool Links
- Demoscene
- Flash Game Dev Tips
- Game Development
- Gaming
- Geek Shopping
- HTML5
- In the Media
- Phaser
- Phaser 3
- Projects
Brain Food