Skip to content

Commit

Permalink
Ghost sprite position reset
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-nov committed Apr 30, 2022
1 parent c9e3faa commit bd106bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/com/andrzejn/chainrelations/GameScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,10 @@ class GameScreen(
}
Tween.to(sprite, TW_POS_XY, 3f)
.target((graphics.width - sprite.width) / 2f, graphics.height.toFloat())
.setCallback { _, _ -> drawGhost = false }.start(ctx.tweenManager)
.setCallback { _, _ ->
drawGhost = false
sprite.setPosition(-1000f, -1000f)
}.start(ctx.tweenManager)
}
}
}

0 comments on commit bd106bc

Please sign in to comment.