-
Notifications
You must be signed in to change notification settings - Fork 24
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
Weird animation behavior inside containers #43
Comments
I managed to reproduce this issue when the window was resized... Doing some investigation on the root cause |
I found the root cause.
In your case, you were testing using the keyword "@tool.". So, Anima stored that info according to the editor's viewport size. So, if the scene had a different size, it would cause that issue. Same if you resized the editor. I've fixed this behavior in #44, which now uses different keys for the metadata according to the fact that you're running inside the editor or as a scene. Also, editor metadata is now cleared before each run. I've recreated your example in this test scene: https://github.com/ceceppa/anima/blob/main/tests/Test.tscn Let me know if you're still experiencing the same issue |
Pushed the missing script :) |
Hi. I tried to see what happens when I put an Anima-animated Control inside a container (which handles the position and size itself), and it does not appear to work as expected. Or maybe I'm missing something?
GIF
My expectation is that the label bounces upon it's initial position, but it's not. It drops to the bottom of the screen. It works the same both in Editor and in running game.
Another issue is that changes to the container size are not respected. E.g. if I resize the window, the "center" label can get out of screen or be not stick to e.g. bottom of the screen to where it is (wrongly) put by "bounce" animation.
I tried to work around this by putting this label into another intermediate container or inside a plain Control, but neither of these workarounds work.
Godot version: 4.2.2
Anima version: latest main branch
The text was updated successfully, but these errors were encountered: