Skip to content

Using FlxScrollingText #19

@JonnyTech

Description

@JonnyTech

Can anyone see what is wrong with the following code?

package;

import flixel.FlxState;
import flixel.addons.plugin.FlxScrollingText;
import flixel.text.FlxBitmapText;
import flash.geom.Rectangle;

class BlahBlah extends FlxState
{
    override public function create():Void
    {
        var scrolltext = new FlxBitmapText();
        var scroller = FlxScrollingText.add(scrolltext, new Rectangle(20, 20, 200, 40), 1, 0, "*TEST* ");
        add(scroller);
        super.create();
    }

    override public function update(elapsed:Float):Void
    {
        super.update(elapsed);
    }
}

These are my current versions:

$ haxelib list
firetongue: [2.0.0]
flixel-addons: [2.5.0]
flixel-demos: [2.4.3]
flixel-templates: [2.4.6]
flixel-tools: [1.4.1]
flixel-ui: [2.2.0]
flixel: 4.3.0 [git]
hxcpp: [3.4.188]
lime-samples: [4.0.1]
lime: [2.9.1] 6.1.0
nape: [2.0.20]
openfl: [3.6.1] 7.1.1
poly2trihx: [0.1.4]
spinehaxe: [3.5.0]
systools: [1.1.0]
task: [1.0.7]

I am compiling on Linux to neko but I get a static garbled output:

test

Similar results with html5 and flash - can anyone help? (Please bear with me as I am very new to haxe)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions