B3D -> Max Conversion

BlitzMax Forums/BlitzMax Programming/B3D -> Max Conversion

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.

OK, just to clarify using a .Remove() method works fine and I should have realized this because it was working for everything in my game besides my particles. What happened was that I have a mold system which copies textures or entities. In B3D I was able to return the handle to a texture, a model, or a CopyEntity() from a single function since they were represented by integer handles. However, in Max I'm unable to return CopyEntity() from the same function so I must return the model handle and then CopyEntity() on the CopyMold() call.

So something like this in the classic TBBType works:

Type bbdynamicParticle Extends TBBType

	Method New()
		Add(dynamicParticle_list)
	End Method
	
	Method Remove()
		FreeEntity( eHandle )
		_link.Remove()
	End Method