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

Late action execution #56

Open
Ch1pStar opened this issue Oct 10, 2017 · 3 comments
Open

Late action execution #56

Ch1pStar opened this issue Oct 10, 2017 · 3 comments

Comments

@Ch1pStar
Copy link

When a frame with an action is skipped, the action is executed on the next possible frame. This works fine, but there is a problem with movieclip properties about the current frame.

My exact case is the following. There are multiple animations for a movieclip on the timeline, separated by labels. When a specific animation is required to be played, it is supposed to stop at its end with this.stop(), but when a frame is skipped the animation stops a few frames later(which is a completely different state for the movieclip).

My current workaround solution is to have an animation end label and another keyframe at the end with the action this.gotoAndStop('animation_end_label'), but this is a very hacky solution and adds extra complexity to the .fla resources.

@bigtimebuddy
Copy link
Contributor

Someone's else brought this up recently and a related issue to sounds being triggered.

My current idea is to actually remove frame-dropping as the default and make it opt-in. That way every frame is played and it's the responsibility of the user to manage their performance issues. This is actually how Flash works, with the exception of streaming syncing sounds.

@Ch1pStar
Copy link
Author

@bigtimebuddy Is something like this what you have in mind?
Ch1pStar@abdd2b9

@bigtimebuddy
Copy link
Contributor

bigtimebuddy commented Oct 16, 2017

Exactly! The only thing I’d change is to make a frameSkip non-private so it can be toggled on and off.

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

2 participants