cannot use functions

Blitz3D Forums/Blitz3D Beginners Area/cannot use functions

Because Cube isn't a global Variable.

Above Graphics3d 800,600 you should have:
Global Cube=0

Then when your run this, you will not get "entity Does Not Exist".

Once you go into a Function, regardless of where the program control came from, that function can only access global variables to the program and local variables defined in that function. If you do not specify what type of variable it is (global or local) it will assume local.

Hope that helps.