Collision Layers

BlitzMax Forums/BlitzMax Beginners Area/Collision Layers

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.

:-)

Flushmem will be needed at least in the mainloop anyway as most commands of BlitzMax create copies when you modify anything on them.

If you use it in OO way (using :Type in declaration), flushmem will clean all unneeded instances (that aren't used anywhere anymore) for you.

if you use it in procedural way (using int handles instead of type), you will have to "delete variablename" to tell the memory management, that you want to remove it, which is done on the next flushmem call as well.


I always put my flushmem just after flip in the mainloop.