sebastien-FR Posted March 4, 2015 Share Posted March 4, 2015 (sorry, i speak english little bit) How killed player and reset player on tilemap :"game.load.tilemap('level1', 'assets/games/starstruck/level1.json', null, Phaser.Tilemap.TILED_JSON);"i tried :player.kill(); //its ok the player disappearplayer.reset(55, 55); //its ok the player reset at start positionbut if i move the player right or low and if the scrolling work, there is bug when "player.reset(55, 55);".I am novice, can you help me ? Link to comment Share on other sites More sharing options...
sebastien-FR Posted March 6, 2015 Author Share Posted March 6, 2015 its ok, i found the problem.its been at the bad place. function enemykillplayer (player, enemy) { // this is ok, no bug lives--; livesText.text = 'lives: ' + lives; player.kill(); player.reset(32, 32); } Link to comment Share on other sites More sharing options...
Recommended Posts