If you use the command MoveEntity, does the entity move immediately? Or does the entity actually move when UpdateWorld is called (and reset the move-command after executing it)?
If the entity only moves when UpdateWorld is called, then I should use multiple UpdateWorld's in the main loop. Even if it doesn't, I should use multiple UpdateWorld's, because Blitz doesn't handle collisions between moving objects very well.
I'm trying to create a space game and want the player-ship to collide with AI-ships (and vice versa).
Before the first UpdateWorld, I would move all AI-ships. Between the first and second UpdateWorld, I would move the player-ship.
This way Blitz can do it's collision checking for each object-type separately, so the player-ship doesn't move through any AI-ship when both are moving.
If UpdateWorld also moves the entities that are told to move, does Blitz reset the move-commands to zero, so the next UpdateWorld doesn't move them too? If that would be the case, then the AI-ships would move twice as fast.
Can anyone explain this to me?
|