Well, first of all Hello Everyone.
I’ve been trying to use ActionScript to create an isometric pseudo3d terrain generator thing, using a dot movie clip.
I come from a C programming background and i thought it’d be pretty easy to just attach a load of movie clips to the stage and put them all (well references to them) into a 2d array so i could call back to them with ease for the moving and the jiggery pokery.
This is what i think sets up a 2d array called point_set, pretty strange syntax a mon avis…
point_set = new Array;
point_set = [[],[]];
Then i attach the movie clips using some nested for loops:
vertex = attachMovie(“mcPoint”, “n”+total, total);
point_set[j]* = vertex;
Then when i try and actually reference them, in this fashion:
onEnterFrame = function()
{
for (j=0; j<height; j++)
{
for (i=0; i<width; i++)
{
node = point_set[j]*;
// rest of the function…
but i only get a few of the points in the onEnterFrame. Viz:
www.relain.co.uk/stuff/flash/landscape.fla
and actually at:
www.relain.co.uk/stuff/flash/landscape.swf
[it is actually an isometric grid, well on a Pi/6 angle but its not set up yet]
Well thanks a lot for any help folks