Flixel Power Tools FlxButtonPlus

Back to the Flixel Power Tools

Released in version 1.0

Takes the FlxButton class you already know, and then pimps it out some! You can specify parameters for the callback, the button width, height and text in the constructor. Change the button text dynamically. Set hover-over and hover-out callbacks. And the default button style is now a nice gradient filled affair (which you can control the gradient colours of yourself). Or just use loadGraphic to replace it.

Screen Shot

Code Example

Recent Flixel Power Tool Posts

  1. Flixel Power Tools v1.9 Released
  2. Flixel Power Tools v1.8 Released - Let's get clicky
  3. Flixel Power Tools v1.7 - Kaboom!
  4. Flixel Power Tools v1.6 released including FlxControl
  5. Flixel Power Tools v1.5 - A monster of an update!
  6. FlxScreenGrab and FlxScrollZone added to Flixel Power Tools
  7. Flixel Power Tools v1.3 - Now Flixel 2.5 compatible!
  8. FlxHealthBar added to Flixel Power Tools

2 Responses

Leave a comment
  • FlixeliKala
    February 13th 2013 at 4:05 pm

    I’m trying to get a button that has a crop of a sprite as a background, and when moused over shifts that crop.

    So for example, the full sprite says, “Quit Game Over?”, but only shows the “Quit Game” segment.
    On mouse-over it scrolls the image right so it reads “Game Over?” (and when released it scrolls back).

    I’m not sure if I can get this to work though. (Short of making each single frame of the slide animation a separate frame in an animated sprite, which seems terribly inefficient).
    Does anybody have any suggestions on how I could tackle this?
    Thanks in advance!

Make yourself heard