I am attaching an image to my page using create.js. And I want to clone it several times and put each one in random positions. I've used Jquery clone() method but there was no use from it.
function handleComplete(e)
var _obstacle = new createjs.Bitmap(queue.getResult("obstacle"));
_obstacle.x= Math.floor((Math.random() * 799) + 1);
_obstacle.y = Math.floor((Math.random() * 799) + 1);
stage.addChild(_obstacle);
}
function tickHandler(e) {
stage.update();
}
Thanks for attention!