Parameters to constructor

BlitzMax Forums/BlitzMax Beginners Area/Parameters to constructor

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.

You can however, make a create function (any name works):

Type player
 Field player_size:float
 Function Create(size:int)
  n:player=new player
  n.player_size=size
  Return n
 End Function
End Type