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

Add documentation about how default variables behave in states #10

Closed
vchelaru opened this issue Mar 18, 2015 · 4 comments
Closed

Add documentation about how default variables behave in states #10

vchelaru opened this issue Mar 18, 2015 · 4 comments

Comments

@vchelaru
Copy link
Owner

If a state explicitly sets a variable then that variable will change in an animation, but it will not interpolate if the other state in an animation does not explicitly set it. This should be called out in a tutorial as it's a pretty critical understanding when making animations.

@vchelaru
Copy link
Owner Author

Comment by @bjorn :
Hmm, that is really strange, isn't it? I would expect it to animate to whatever the "effective value" of the variable is, whether it is set explicitly or not. This is what my UI system does at least, as well as what Qt Quick does.

Is there any reason to keep it that way and just document it, rather than changing it to be more what you would expect?

@vchelaru
Copy link
Owner Author

@bjorn So the idea is that if one of the frames sets a value but the other frame doesn't, then the interpolation would occur between the explicitly set value and the value on the default state?

@bjorn
Copy link
Collaborator

bjorn commented Mar 18, 2015

Exactly.

@vchelaru
Copy link
Owner Author

This is an old card but I thought I'd wrap it up by linking to the docs about category variable ownership.

https://docs.flatredball.com/gum/intro-tutorials/state-categories

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