Types

Blitz3D Forums/Blitz3D Beginners Area/Types

Well, Currently there is not a problem... but I can see it happening in the future.

Ok the Brief Version.. I have a game (obviously) :) And there are boxes that get eatten by Enemies. I use Tokamak for Collision and Physics. Tokamak has User Data that I can assign, so I choose to use the Handle() Value so when a collision occurs, I don't have to cycle through all the boxes I can just use the User Data returned from Tokamak.

To be honest I thought that this would be a problem, because I don't know what the Variable size is that holds the User Data. If it was a byte, this would cause some immediate problems because after 255 the my system would not work.. If its a word then 65536 would be my limit. I don't like that there would be a limit, even though 65536 is a lot of items to collect... but over a course of play it Could happen. I can rework this, but it would take a lot of work.

It's not a big deal really, I'll work it out. I was just hoping for a way to reset the Type lists Handle() value.

So with this said there must be a limit to the number of types you can add and delete from one type list.
Time for some tests.

Regards,
Eric