Player disappearing

Issue #13 resolved
TheGreatA created an issue

Create solutions for the several bugs in the game.

Sometimes the player object disappears when another object uses the command obj.remove().

One way to possibly solve the issue is by using the IsAlive command (see JGame javadoc).

The solution should be that the player object never disappears from the game.

Comments (1)

  1. TheGreatA reporter

    Player can respawn to the map with the below command:

    if(countObjects("player",1)==0){

    player=new StdDungeonPlayer("player",300.0,300.0,1,"tikkukkoanim_1",true,false,0,0,1.0,key_up,key_down,key_left,key_right); for (int i=0; i<1; i++) }

  2. Log in to comment