1 decade ago by Hareesun
For some reason, the below code keeps drawing over the player. I just can't figure out why. Any help is epically appreciated. :) Aside from drawing on the wrong layer, it works fine. :)
draw: function () { this.parent(); var dMap = [[1,2,3,4],[5,6,7,8],[9,10,11,12]]; var dDraw = new ig.BackgroundMap(8, dMap, 'media/tiles.png'); dDraw.foreground = false; dDraw.setScreenPos(-16, -16); dDraw.draw(); }