Open freemanfromgodotengine opened 4 years ago
Please fill in the issue template, it is mandatory. I will reopen once this is done.
Please fill in the issue template, it is mandatory. I will reopen once this is done.
Ok. Sorry, I had no idea. Thanks. and... Done.
I think this is already possible by animating path/to/node:position:x
or path/to/node:position:y
. It could probably be made more discoverable, however.
Indeed @bojidar-bg . Thank you for the solution by the way. :) I did not discover that earlier and I was looking through docs and Q&A like crazy, so I guess, I would love to see in Godot something like this but then it should not be about position only. I guess the change should affect the size, scale, and pivot offset as well.
Describe the project you are working on: Mobile app I was trying to animate the UI elements in my project
Describe the problem or limitation you are having in your project: I have found an unnecessary limitation in the node's animation system. Right now node's position's animation animates X and Y coordinates together and in the process it overwrites the settings of the layout preset of the node. Video of the problem:
Describe the feature / enhancement and how it helps to overcome the problem or limitation: It should be possible to set the node's layout to bottom right for example and let it stay there and animate only 'up & down' Y value, with X reacting according to layout preset - bottom right - and not to be set by animation X position so... the sprite should move up and down and in the same time stick to the right edge of the window.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams: Mockup video of how it should work after animating only Y position:
If this enhancement will not be used often, can it be worked around with a few lines of script?: I think positioning and layering nodes is used very often. I imagine, giving it more flexibility should be a desired course of action. I can also imagine, that this kind of feature can be (like most limitations) worked around somehow.
Is there a reason why this should be core and not an add-on in the asset library?: Position of nodes is already a core feature, so it would be logical to keep it's corrections/enhancementsin the core as well.