I'm having a weird problem that just makes no sense to me. Picture this, I have a mothership entity moving across the screen. When it gets hit by a bullet, i HideEntity(mothership), then user PositionEntity to move it off the side of the screen for the next time it does its pass. Problem is that the next time my little rand timer goes off and I unhide the mothership, and start it moving again, there is this flicker of an image as the mothership 'jumps' to that off screen position then starts moving. Even though in the code, the mothership was positioned off screen many frames ago.
I have this same effect with my figher/player entity, when it gets hit, i hide it, and move it back to center to start again with the next life, and this jumping effect happens there too.
The only way I have gotten around it, is to create a new entity every time and use CopyEntity() to copy the template entity into it. Then when the entity is killed, i do a FreeEntity(). This does not seem optimal to me, and somewhat wasteful.
Any ideas?
Cheers,
rhuk
I have this same effect with my figher/player entity, when it gets hit, i hide it, and move it back to center to start again with the next life, and this jumping effect happens there too.
The only way I have gotten around it, is to create a new entity every time and use CopyEntity() to copy the template entity into it. Then when the entity is killed, i do a FreeEntity(). This does not seem optimal to me, and somewhat wasteful.
Any ideas?
Cheers,
rhuk