Linked List Help Please
Posted: Fri Jun 30, 2006 12:25 am
Hello There
I seem to have had a little problem and was wondering is there a very kind person out there that could tell me where I am going wrong the code below use to work on 3.94 but its no go on v4.00
I have looked but I just cant see where the problem is...
Thankyou in advance
Kevin
P.S. I am not to great with Link Lists LOL

I seem to have had a little problem and was wondering is there a very kind person out there that could tell me where I am going wrong the code below use to work on 3.94 but its no go on v4.00
I have looked but I just cant see where the problem is...
Thankyou in advance
Kevin
Code: Select all
Structure enemy
x.f
y.f
SpeedX.f
SpeedY.f
InertiaX.f
InertiaY.f
MaxInertiaX.f
MaxInertiaY.f
InertialVelocityX.f
InertialVelocityY.f
Armor.b
; needed to let alien be created offscreen without dying
OnScreen.b
; needed for pattern control on each alien
Pattern_Number.b
Pattern_Offset.w
pattern_counter.w
EndStructure
NewList Enemy.enemy()
Procedure AddEnemy(x, y, SpeedX, SpeedY, Armor)
AddElement(Enemy()) ; Not a function, array or linked list em.....
Enemy()\x = x
Enemy()\y = y
Enemy()\SpeedX = SpeedX
Enemy()\SpeedY = SpeedY
Enemy()\Armor = Armor
EndProcedure