FOREACH t IN Enemy[]
FOREACH s IN Enemy[]
IF Enemy[t].Y > Enemy.Y
You are wrong you have to write this...
FOREACH t IN Enemy[]
FOREACH s IN Enemy[]
IF t.Y > s.Y [/quote]
//I'm not sure if you can use 2 foreach one into the another, I suppose yes you can use, But I never use ... Try only whit a Bucle...
Remenber when you do foreach item in Enemy[]
You don't have to call enemy[].x <<< you don't have index here!!! the mode it's
foreach item in Enemy[]
item.x or anything you have declared in the Type ---- Endtype
<...>
next