deleting types (entity doesnt exist)

Blitz3D Forums/Blitz3D Programming/deleting types (entity doesnt exist)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It sounds like you are running your two pieces of code in the same loop, like this:
For s.ship=Each ship
If s\hull=0
FreeEntity s\ship_Handle
Delete s
EndIf
moveentity s\ship_handle 0,0,s\speed
next
If that's the case then it needs to go like this instead::
For s.ship=Each ship
If s\hull=0
FreeEntity s\ship_Handle
Delete s
Else
moveentity s\ship_handle 0,0,s\speed
EndIf
next
If that's not the problem, then it might be helpful to see a bit more code...