TranslateEntity

Blitz3D Forums/Blitz3D Beginners Area/TranslateEntity

Almo(Posted 2004) [#1]
Okay, I'm using TranslateEntity to move my cop around. It's working fine, collisions are working, everythings cool. But when I reset the game loop, I use PositionEntity to move the cop back to his start position. Then the next TranslateEntity moves him back to where he was before the reset.

What's going on? I even tried an UpdateWorld() after the PositionEntity.


Rob Farley(Posted 2004) [#2]
Hideentity before doing the positionentity then showentity again.

What's happening is when you reposition it the collisions are still in play, so you hide it first to avoid collisions.


Almo(Posted 2004) [#3]
Got it. Thanks. I had assumed positionentity ignored collisions.


GitTech(Posted 2004) [#4]
or use ResetEntity after PositionEntity, this will reset the collisions for the entity.