Code: Select all
function initializeMines
repeat with i = 1 to 4
put "mines" & i into gMinesBegin
end repeat
repeat with i = 1 to 4
put (0.1 + random(10/10)) into dropSpeed
end repeat
repeat with i = 1 to 4
put 150 + (i-1)*60 into gMinesStartX
put gMinesStartX into gMinesX
put 50 into gMinesStartY
put gMinesStartY into gMinesY
set the location of group gMinesBegin to gMinesX, gMinesY
end repeat
--set the loc of grc "mine" to 304,15
--move grc "mine" from 304,15 to 304,340 in 15 seconds
end initializeMines
chris