Ok, Im lost here,I thought I was doing this right,here is my code.
its giving me the error array subscript out of bounds.
rem set up a type
type enemies
ehealth
estates
endtype
rem dim the array
Dim enemy(4)as enemies
enemy(1).ehealth =10
enemy(2).ehealth =6
enemy(3).ehealth =4
enemy(4).ehealth =8
enemy(1).estates=8
enemy(2).estates=9
enemy(3).estates=10
enemy(4).estates=11
rem in loop
for i = 8 to 11
if animestate2#=0 then loop object (enemy(i).estates),236,265:set object speed enemy(1).estates,70
I thought I had everything right, Am I using the array right or not?
my signature keeps being erased by a mod So this is my new signature.