Plain Ol' Help

Blitz3D Forums/Blitz3D Beginners Area/Plain Ol' Help

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.

FreeEntity frees the mesh, blitz is using, from memory.

Delete, works by deleting the type object you have created. If you use this on it's own, and you have fields which contain mesh,texture,sprite, sound handles attached (basically any form of media or handle), they will still remain in memory, with no link to them.

Your having problems because, you are freeing the mesh, but leaving behind the type object and the field "bubble\entity" reference to it.

You need to:

Free the mesh
Delete the type object.

FreeEntity bubble\entity
Delete bubble.bubble


As for you bubble not coming out of the exhaust, i believe it might have something to do with the entity XYZ positions getting taken from the exhausts PARENT. I believe the exhaust is parented to the car?

If so, you need to do:

PositionEntity bubble\entity, EntityX(sphere\exhaustpipe,true), EntityY(sphere\exhaustpipe,true), EntityZ(sphere\exhaustpipe,true) - 2,true


Use the global parameters in the EntityX Y and Z commands.