Builds the markers and drops int he go to the frame handler for each node of a Myst-tpye environment. For use with the Basic Navigation behavior.
--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)
on buildNavScore numX, numY, holdScriptName
xGrid = integer(numX)
yGrid = integer(numY)
if xGrid > 0 and yGrid > 0 then
beginRecording
go to frame 1
cycle = 0
repeat with x = 1 to xGrid
repeat with y = 1 to yGrid
repeat with z = 1 to 4
the frameLabel = string(x) & "-" & string(y) & "-" & string(z)
go to frame ((cycle * 10) + 5)
the frameScript = member(holdScriptName)
cycle = cycle + 1
go to frame (cycle * 10)
end repeat
end repeat
end repeat
endRecording
end if
end
on getBehaviorDescription me
describe = "This little script is very helpful for generating a basic grid structure for a game that utilizes 4 point nodes. Call like this..." & return & "buildNavScore(numberOfXGridPieces, numberOfYGridPieces, nameOfHoldScript)"
return describe
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA