SpritesheetAnimator.addY - HermesPasser/Ramu GitHub Wiki
SpritesheetAnimator.addX()
Parameters
int
y: Value to be added to y.
Description
Add a value to current y position of it and its animations.
You can test this snippet of code here.
let animator = new SpritesheetAnimator(10, 10, 35, 35);
new GameObj().update = function() {
animator.addY(3 * Ramu.time.delta);
};
See also SpritesheetAnimator.addX, SpritesheetAnimator.setX and SpritesheetAnimator.setY.