1 decade ago by Jon123
Hi, I want to update an entity's position every time the update() method is called, but calling
If I don't call this.parent(), the animSheet doesn't update and none of the collision detection works, the entity simple floats through walls...
Any help would be appreciated.
this.parent()resets the position to what it was at the start.
update: function(){ this.currentAnim = this.anims.left; this.pos.x = this.pos.x -1; this.parent(); },
If I don't call this.parent(), the animSheet doesn't update and none of the collision detection works, the entity simple floats through walls...
Any help would be appreciated.