So I'm about to add some movement to the NPCs in my game. They have bump bodies but, the way I have been moving my player, for example, is by doing:
world:move(player, x+1, y)
... Inside onEnterFrame().
But I feel that I shouldn't have decoupled movement like that. My question is, would I be better off doing something like creating a physics body, then adding the player table to that
? That way, when the body moves in world:move(), the player class is dragged around too?
Or does bump handle that automatically now? Like, it moves the bitmap and not just the physics body? And so if I did player:getX() it would accurately reflect where the player is, without ever having explicitly used setPosition()?
I'm not really sure that would work but one thing I am sure of; I've gone and confused myself again.