2 Small questions

Blitz3D Forums/Blitz3D Beginners Area/2 Small questions

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.

1) Types are not automatically global but you can make them global
e.g global enemy.bullet
2) Yep, but they're 'special' Blitz arrays.
Type ship
Field missiles[2]
They have a few limitations...
http://www.blitzcoder.com/cgi-bin/code/code_showentry.pl?id=thechange09052002191420&comments=no
You can also have types within types and arrays of types.
Blitzcoder has some articles and Learn to Program 2D Games in Blitzbasic has a good section on this subject.