SpritesheetAnimator.setX - HermesPasser/Ramu GitHub Wiki

SpritesheetAnimator.setX()

Parameters

int x: Value of x.

Description

Set the x position of it and its animations.

You can test this snippet of code here.

let animator = new SpritesheetAnimator(10, 10, 35, 35);
animator.setX(300);

See also SpritesheetAnimator.setY, SpritesheetAnimator.addX and SpritesheetAnimator.addY.