Skip to content

Ending the delay and starting the execution at the same update#182

Open
skalogryz wants to merge 2 commits intodentedpixel:masterfrom
skalogryz:master
Open

Ending the delay and starting the execution at the same update#182
skalogryz wants to merge 2 commits intodentedpixel:masterfrom
skalogryz:master

Conversation

@skalogryz
Copy link

Delta Time applied to the delay is eventually lost (in the next frame) and is never applied to "passed" time of a tween.

This could cause some issues, where the time sequencing is important. (i.e. the final step of the sequence destroys the object, thus it's necessary that all previous steps are completed).
Thus the "loss" of any amount of time needs to be avoided.

Currently the delay and "start" of a tween always occur in separate frames.
The patch changes this behavior, by reducing the delay first, and IF the delay becomes negative "starts" the tween.

It's still possible to split running out of the delay and starting the tween into different frames, and maintain the delta time difference, but just requires adding some extra flags to the tween, and I did want to avoid that for the sake of simplicity.

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.

1 participant