Linking .bb files

Blitz3D Forums/Blitz3D Programming/Linking .bb files

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.

Anyone with any ideas either how to make objects global, without them being global if you know what I mean...
Arrays are global by default so if you load all of your objects into arrays like Ross' code above, they will BE global.
numObjects = 100
Dim level_object(numObjects)
Dim level_objectx(numObjects)
Dim level_objecty(numObjects)
Dim level_objectz(numObjects)

If you really want local variables you can pass them to your functions when your functions are called.
Object1 = ; a new object
MyFunction(Object1)

Function MyFunction(anObjectThatWillBeManipulatedInThisFunction)
;Do something
End Function