Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using FlxScrollingText #19

Open
JonnyTech opened this issue Feb 10, 2018 · 0 comments
Open

Using FlxScrollingText #19

JonnyTech opened this issue Feb 10, 2018 · 0 comments

Comments

@JonnyTech
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant