I think the original
Player
class (noextends
) was better.
Thanks… may I know why ?
I’m just trying everything … haha
In the scene you need to add a collider for it.
Turn on physics debug to confirm where the bodies are.
Yes, debug box is turn on …
I have 2 object this.player and I added this.player.currentPlayer
when I check this.player.x is always 0
when I check this.player.currentPlayer.x is the actual x position