Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Fake Drag Bar - Stage
Streaming Media
System Info into a field member
Return the name of the current user
Photo Caster
Lingo Paradise
Set Stroke properties
Browse Folders Dialog Behavior
Pass handler to next Sprite
MP3 Player
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail