I have data stored in a file regarding object placement eg player start position
When I want to create that player I have a function within a type which I will then pass the variables into the player that I am creating like so (obviously nowhere near complete yet!):
With the variables in the brackets for the create function I get a 'missing type specifier' error. What am I doing wrong please?
Thanks
Graham
When I want to create that player I have a function within a type which I will then pass the variables into the player that I am creating like so (obviously nowhere near complete yet!):
Type TPlayerShip Extends TSpaceObject Global List:TList Global Image:TImage Function Create(i,x,y) Local Ship:TPlayerShip = New TPlayerShip 'this is where I use the i,x,y variables If List = Null List = CreateList() List.AddLast Ship 'Add Ship Last in List EndFunction End Type
With the variables in the brackets for the create function I get a 'missing type specifier' error. What am I doing wrong please?
Thanks
Graham