creating types/objects in a separate file?

BlitzMax Forums/BlitzMax Beginners Area/creating types/objects in a separate file?

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.

okay thanks for that. I'm assuming the syntax is something like;

import shipclass.bmx 'where shipclass.bmx is in the same dir

'and then to declare & reference

global playership:ship=ship.create()
playership.moves=10
playership.x=20
playership.y=50