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

Prevent tween collisions when fading a FlxSound #1834

Merged
merged 1 commit into from
Apr 26, 2016

Conversation

JoeCreates
Copy link
Member

Presently you can have issues if you call one of the fade methods too soon after a previous call.

For example, you might do fadeIn over 5 seconds, but two seconds later call fadeOut over 1 second. The later fadeOut call will be overriden by the earlier call, and the effect on the sound will be very odd.

Solution is to have only one fade tween on a sound at any time, which get's cancelled if a new fade is invoked. This tween is public so users can check and change it themselves if need be.

@Gama11 Gama11 added this to the 4.1.0 milestone Apr 25, 2016
@Gama11 Gama11 merged commit a462ccc into HaxeFlixel:dev Apr 26, 2016
Aurel300 pushed a commit to larsiusprime/haxeflixel that referenced this pull request Apr 18, 2018
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

Successfully merging this pull request may close these issues.

2 participants