SpritesheetAnimator.setY - HermesPasser/Ramu GitHub Wiki

SpritesheetAnimator.setY()

Parameters

int y: Value of y.

Description

Set the y position of it and its animations.

You can test this snippet of code here.

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

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