I am beginner, I am sorry if anyone already asked the same question before.
As the picture shows:
I biulded a cube animtion from 1 to 10 frames, just move a little.
I hope mouse over and click, cube can move ---- click again, cube can move back.
It’s very useful, like open/close the door, trun on/off the light…etc.
What I confusion for is:
(1) The cube seems intractable and chaos, not strictly following the mouse.
(2) I don’t know how to setting Level Trigger for mouse, I tryed some but work not well.
(3) I added a boolean property for switch reciprocating motion, I don’t know is it the best way?
thanks all reply & help.