Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Setting Up A Multidimensional Array
From: Paul Steven
Date: Thu, 21 Sep 2000 10:34:28 +0100

Hi all

Ok - today is my first day of looking at Flash 5 and trying to program a pac
man style game using the new action script. I had originally started this
game in Flash 4 but now I have Flash 5 I thought I may as well use it.

Anyway in my Flash 4 version I stored the game grid as a series of variables
Row1_Data="WBBWBBBWBBBWBBBBW"
Row2_Data="WBB"
etc

Whereby say W=Wall and B=Blank Square

This seemed to work fine - but I am trying to replace these variables using
arrays. So based on the pacmans row and column I could check the content of
the square by using syntax something like Grid_Array[Row][Column]

But how do I set up such an array with all the grid data - it is not very
clear in the manuals.

Any help much appreciated

Paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]