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!