IGenericActuator: added goto() method that can manually change the current position#104
Open
joshtynjala wants to merge 2 commits intoopenfl:masterfrom
joshtynjala:goto
Open
IGenericActuator: added goto() method that can manually change the current position#104joshtynjala wants to merge 2 commits intoopenfl:masterfrom joshtynjala:goto
joshtynjala wants to merge 2 commits intoopenfl:masterfrom
joshtynjala:goto
Conversation
Member
|
How do you feel about using Also, I wonder if seeking should permanently affect the tween, like: Actuate.tween(target, 2, props);
Actuate.seek(target, 1, props);
// 1 second remaining on the tween before complete...I suppose this method might not work properly for rewinding or would trigger completion events when someone might want to be able to update to the end of the tween and back This does raise an interesting question though of using Actuate with local instances rather than the global approach. I almost wish we could have local and global methods with the same name (like in AS3) so |
Member
Author
|
Yeah, seek/time would be fine by me. It's not a big deal if I need to manually convert between ratio/time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sometimes, I want to pause a tween and control it manually instead of letting it update automatically every frame. For instance, I might want to change the current position based on a Slider or another type of UI, like you would with video or audio.
Example usage