Hi Claude
All you need to do is put a g;obal declaration of the object/type after the type is declared e.g.
;declare the type...(in this example an alien)
;alien
Type alien
Field x
Field y
Field reloading
End Type
then do a global declaration like this....
Global alien.alien ;alien object
This allows you to create as many aliens as you need with the following line..
alien.alien = New alien
this can be put inside a loop or function and creates a new object of the alien type (an alien). You can create as many aliens as you want with only the 1 global declaration.
Setting it as global allows the alien objects to be accessed anywhere in your code.
Hope this helps
MikeT
All you need to do is put a g;obal declaration of the object/type after the type is declared e.g.
;declare the type...(in this example an alien)
;alien
Type alien
Field x
Field y
Field reloading
End Type
then do a global declaration like this....
Global alien.alien ;alien object
This allows you to create as many aliens as you need with the following line..
alien.alien = New alien
this can be put inside a loop or function and creates a new object of the alien type (an alien). You can create as many aliens as you want with only the 1 global declaration.
Setting it as global allows the alien objects to be accessed anywhere in your code.
Hope this helps
MikeT