Example #1
0
  public void respawn() {
    this.health = maxHealth;
    velocity.set(0F, 0F);
    setPosition(spawnPoint.cpy());

    reset = false;
  }
Example #2
0
 public void setCheckPoint(Vector2 point) {
   this.spawnPoint = point.cpy();
   this.spawnPoint.add(0.025F, 0);
 }