I am creating and i number of ships and then moving them into the scene at the appropriate level, but I am having difficulties with the syntax. My ships are called mo
[code]
if (“mo[i]” == “mo”…level…"]") then
timer.performWithDelay( moStartTime , mo[i].FlyState1 ,1)
end
[code]
here is the code for the levels
[code]
if( score >= 0 and score <= 3) then
level = 1
elseif (score >= 4 and score <= 9) then
level = 2
elseif (score >= 10 and score <= 39) then
level = 3
elseif (score >= 40 and score <=99) then
level = 4
elseif (score >= 100 and score <= 199) then
level = 5
elseif (score >= 200 and score <= 299) then
level = 6
elseif (score >= 300 and score <= 399) then
level = 7
elseif (score >= 400 and score <= 500) then
level = 8
end
[code]
The starting score is 0 which should make the first ship move. But it’s not.
Thanks for your help.
[import]uid: 8192 topic_id: 1820 reply_id: 301820[/import]