beuleal Posted May 30, 2015 Share Posted May 30, 2015 Hey! Im getting an issue when i want to create a rect out of my camera! Its not showed!Lets see the code (Ps.: I did a clean): var wMap = 1000var hMap = 1000var px = 900var py = 900var h = 568;var w = 320;var game = new Phaser.Game(w, h, Phaser.CANVAS, 'game');land = game.add.tileSprite(0, 0, wMap, hMap, 'space');game.world.setBounds(0, 0, wMap, hMap);...game.camera.follow(player);...this.bmd.rect(px, py, 15, 15, 'rgba(255, 255, 255, 1)'); Link to comment Share on other sites More sharing options...
beuleal Posted June 1, 2015 Author Share Posted June 1, 2015 Helppppp!!!! Plz! Link to comment Share on other sites More sharing options...
drhayes Posted June 2, 2015 Share Posted June 2, 2015 Need more information: what's "this.bmd"? A BitmapData object? Has it already been added to the world or a sprite or something? Is your player near that position? Try sticking the camera at 0,0 and drawing the rectangle there. Do you see it? Link to comment Share on other sites More sharing options...
Recommended Posts