Type pointer

Blitz3D Forums/Blitz3D Programming/Type pointer

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.

No, but you can use the tried and tested object / handle method ...

Firstly, when creating the type instance, store the type handle in the entityname like so ..

n.mytype = new mytype
n\entity = createcube() 
nameentity( handle( n ) ) 


Then when you find your entity collided, simply get the object like so ..

Test.mytype = object.mytype( entityname( entity_collided) )
Test\Life = Tes\Life - 1 ;etc....


Should work just fine.

Stevie