xronn Posted February 27, 2014 Share Posted February 27, 2014 Hi, I have a player and when he stands on a button he gets teleported to a new area of the map. At the moment I'm using the phaserplayer.reset(x, y, health);to redraw the player in a new location and it works really well apart from you have to define health, is there anyway to reset the player but keep the health the same or have no change. Thanks Link to comment Share on other sites More sharing options...
lessmilk Posted February 27, 2014 Share Posted February 27, 2014 Simple, just do: player.reset(x, y) :-) Link to comment Share on other sites More sharing options...
xronn Posted February 27, 2014 Author Share Posted February 27, 2014 x,y only threw an error with 1.1.3 I just did player.health and it kept it the same i thought I tried that -.- silly me thanks! Link to comment Share on other sites More sharing options...
Recommended Posts