HaxeFlixel / flixel-addons

Additional classes for HaxeFlixel
170 stars 139 forks source link

Add skipCallback to FlxTypeText #379

Closed kinoko87 closed 11 months ago

kinoko87 commented 1 year ago

Makes it easier to do actions if the text is skipped. Current work arounds is to have a boolean that is set when e.g the user presses any of the skipKeys or when the text is complete.

Geokureli commented 1 year ago

I'm not following, skip is an immediate action, callbacks are for asynchronous actions, this can be achieved by simply calling a function after calling skip.

For instance:

myTyper.skip(onTypeSkip);

would behave exactly the same as

myTyper.skip();
onTypeSkip();

can you show me how you're using this and why you needed it?