Hi! im giving my first steps in OnClick animations with dynamic components, and the animation im trying to make its something like this:
Object A, moves forward and changes position (x, y and z) and in consequence, Object B takes the place of Object A.
Is this possible?
To add a new layer of difficulty to all this context, i want to use this on a Virtual reality device haha, i know i can move DCs in VR sketch using the meta quest 2, but i have neved made an animation this complex
What is the relationship between A and B
Are they brothers? Parent and child,
Natively you can obtain value from : parent, brother or child
B move at the same time of A withe same direction and length?
If yes put B on A
If B move only when A arrive to the same place
Put A and B in a super component, create an attribute « animate_value on it
A On click attribute on A that animate the animate_value
Set the formula on x for A
X= if(parent!animate_value<50, parent!animate_value,50)
And for B
Make the location of both Component A and Component B dependent on a user defined attribute. Use IF statements to set the location based on that attribute (for example, set locX to 'IF UserAttribute=1, 10,20, then have UserAttribute change from 0 to 1 with OnClick).