Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Media Development
AppActive
Making Multiple Animated Buttons
Xtravaganza: the Essential Sourcebook for Macromedia Xtras
FreeRegEdit
007 Fonts
Josh Chunick's Personal Site
ProMix Xtra for Authorware and Director
QTMovieXtra
Page turn
MediaMacros Xtras Mall
 

 

 

Behavior Build Environment

Added on 6/17/1999

 

Compatibilities:
D7 D8 Mac PC Script

This item has not yet been rated

Author: MediaMacros (website)

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail