Debugging Fun!

Blitz3D Forums/Blitz3D Programming/Debugging Fun!

Well I doubt that this is a result of double entities for the following reasons:

1) There is no z-buffer distortions. The entity simply changes color comletely.

2) The enemies appear to change between several different patterns and I cannot seem to control when it occours. For example one enemy I had and faced, it would switch between more than one texture.

The hardest part of this error is the difficulty I'm having replicating it. It takes a few minutes of testing for the error to occur and it happens almost randomly. Does anyone have any other ideas at what could trigger a spontaneous brush change?

@jumper - no, there wouldn't be a double spawn problem. The SpawnEnemy() function I have positions enemies separately. If there was a problem it would be due to having multiple entities in the same location all parented to the Offset Pivot so they got moved along the same, and thus being the same enemy for code purposes. However given my forementioned reasons I doubt this is the case.

Thanks for your help...