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

Simplifying FlxDelay #13

Open
FlixelCommunityBot opened this issue Nov 28, 2013 · 0 comments
Open

Simplifying FlxDelay #13

FlixelCommunityBot opened this issue Nov 28, 2013 · 0 comments

Comments

@FlixelCommunityBot
Copy link

Issue by IQAndreas from Tuesday Dec 27, 2011 at 22:00 GMT
Originally opened as photonstorm#13


I find it unnecessary that FlxDelay extends Sprite, when it can be made much more simple and efficient by adding a single static dispatcher that provides the event for all FlxDelay instances:
https://gist.github.com/1525275

Or another solution, why does it extend Sprite and listen to ENTER_FRAME instead of extending FlxPlugin and using it's "update" method?

An an additional idea for FlxDelay, the "newDuration" parameter of "reset" should be optional, so by default, if no parameter is passed, the timer will be reset to the same amount of time it was when first initialized.

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