Skip to first unread message

Suhail Habib

unread,
Jan 9, 2015, 2:10:20 PM1/9/15
to
Hi.

I've been using vanilla flixel for a long while, and recently started using HaxeFlixel for Windows games. I am trying to create a moving text, so I do the following:

var text:FlxText = new FlxText(20, 20, 50, "bbb", 16);
text
.velocity.x = 20;
add
(text);

The result is that I have the text on screen, so that means that the add succeeded, but the text isn't moving(?). This used to work in flixel. At first I thought it might be the target, so I changed it from Windows to Flash just to test stuff... nope, still not moving! Anybody else run into this? If yes how did you get it to move?

Note: I did a workaround for my immediate needs by extending FlxText into MovingFlxText, adding a dummy FlxObject property, adjusting the velocity of that FlxObject, and making it so that on every update for MovingFlxText it assumes the same position as the FlxObject... But I prefer not to use this in the future.

Thanks for your time! 

Gama11

unread,
Jan 9, 2015, 2:41:04 PM1/9/15
to haxef...@googlegroups.com
Try

text.moves = true;



On Friday, January 9, 2015 at 8:10:20 PM UTC+1, Suhail Habib wrote:
Hi.

I've been using vanilla flixel for a long while, and recently started using HaxeFlixel for Windows games. I am trying to create a moving text, so I do the following:

var text:FlxText = new FlxText(20, 20, 50, "bbb", 16);
text
.velocity.x = 20;

add
(textul);

Suhail Habib

unread,
Jan 9, 2015, 3:00:59 PM1/9/15
to haxef...@googlegroups.com
That did it, thanks!
Reply all
Reply to author
Forward
0 new messages