πŸŒ–Animate

it all starts with walking animation

you can do animation in two ways

  1. With the splite system, you can split an image into several animations.

  2. You set the desired property of the object to do the things in the array.

1. Splite system

var mybestanimate = [
  {
    image: "test.png",//file name
    time: 100,//how long will it stay
    position: { x: 10, y: 5 },//starting position
    scale:{x:50,y:45}//ending position
  },
  {
    image: "test.png",//file name
    time: 100,//how long will it stay
    position: { x: 58, y: 5 },//starting position
    scale:{x:50,y:45}//ending position
  }
];

Add, Remove and Update

The top left part in the picture is position.

The lower right part of the picture becomes scale.

To understand that the animation is finished, you can use

This system can be confusing so method 2 might be better for you

2. Animator

In order to use it, it is necessary to run the "eap" module in your project.

For remove

Last updated