EntityName$ behavior

Blitz3D Forums/Blitz3D Beginners Area/EntityName$ behavior

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.

A handle is just something that lets you reference something such as an entity throughout your program.

E.g.

football=CreateSphere() ; football is the handle
EntityColor football,255,0,0 ; make football red!

Without the entity handle, you would not be able to make the football red.

CreateSphere()
EntityColor ????,255,0,0 ; change the color of what??

In terms of whats going on behind the scenes a handle is just an integer that references a part of the computer memory that allows us to access the entity.