Panorama.setDrawPriority - HermesPasser/Ramu GitHub Wiki

Panorama.canDraw(num)

Parameters

int num: Value of canDraw of its animations.

Description

Set the drawPriority of the sprites.

You can test this snippet of code here.

let img = Ramu.Utils.getImage("https://github.com/HermesPasser/Ramu/blob/master/demos/img/montains.png?raw=true");
let panorama = new Panorama(img, 0, 0, 500, 500);
panorama.drawPriority(1);