Yet another collision bug,
Archives Forums/Blitz3D Bug Reports/Yet another collision bug,
| ||
Don't know if this has already been said but anyway, This situation, you have a parent entity with many children, you are checking collisions for each child, when any child collides you hide the parent, although hiding and showing an entity will work as a ResetEntity(), all the children still keep the collision information when they are hidden and shown. So when you show the parent again and check collisions for each child, it will give an "Entity does not exist" if the entities which collided with the children are deleted. Two ways to correct this, - Hiding or showing a parent will automatically reset the collision information for all its children. - Adding a new parameter to the ResetEntity() command to also reset the collision for all the children if you want to (ResetEntity parent,True) Run this code to look at it: |