Develop games in your browser. Powerful, performant & highly capable.
you can put a variable to get a value in x and one to get the value in y of the object, then compare the value and depending on the result, you define the animation
Now I have made a plan for the next steps
more graphical updates