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.

Hi all

I am having trouble passing parameters to my constructors.

Example:

type player
field player_size:float
method new(size:int)
player_size = size
end method
end type

Player1:player = new player(20)