Hi there, after some generous tips from you lot I'm trying to use tlists to implement aliens in my [soon to be] legendary shmup. I did generate some code first just to see if I had the syntax sorted out, and thought I had the whole list thing figured out. I am however unable to get the following code to work:
trying to execute the following code results in a "Missing function parameter 'x'" compile-error. (And yes the type talien does have an x-field).
Anyone? Thanking you all in advance for your trouble.
Local antalaliens : Int = 6 ' define number of aliens Local alienx : Int = 200 Global blomswarm : TList = CreateList() For counter = 0 To antallaliens-1 Local alien : talien = New talien alien.x = alienx alien.y = 200 blomswarm.addlast(alien) alienx = alienx + 60 Next'counter For swarm1 : alien = EachIn blomswarm DrawText swarm1.x '"here there be problems" Next
trying to execute the following code results in a "Missing function parameter 'x'" compile-error. (And yes the type talien does have an x-field).
Anyone? Thanking you all in advance for your trouble.