Entity does not Exist
Blitz3D Forums/Blitz3D Beginners Area/Entity does not Exist
| ||
Hi there I'm using Blitz3D 1.6.4 I get "Entity does not exist" error, each time I exit my game demo. I press escape to exit. It gives the error each time on the same model. Here are pieces of my code: Global carp_model# -- carp_model#=LoadMD2( "fishblitz.md2" ) -- Some time during the demo, I hide the entity. HideEntity carp_model --- If keydown(1) then FreeEntity carp_model -> "Error on this line" endif Anyone had the same problem? |
| ||
Does the carp_model appear on screen? |
| ||
Yes I created a Type -> Fish f.Fish=New Fish f\entity=CopyEntity( carp_model ) During gameplay, all the carp models appear on screen. |
| ||
carp_model#=LoadMD2( "fishblitz.md2" ) don't do that. You making the variable a float. try carp_model=LoadMD2( "fishblitz.md2" ) Never make a variable your using for a handle for entities, a float. Float have limited accuracy. |
| ||
thanks i'll try that |