Two objects overlapping in an array

  • C360
  • Novice
  • Novice
  • C360
  • Posts: 23

Post 3+ Months Ago

In a graphical array, how do you put two things on top of eachother?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

Please explain what you mean by "array."

When I hear that word, I think of a series of variables or text/numeric information.

If you're using an array to store links to graphics (in your library or externally loaded), you can load them into empty movieclips on seperate layers to overlap them...

but... once again, I'm confused as to what you mean by "graphical array."
  • C360
  • Novice
  • Novice
  • C360
  • Posts: 23

Post 3+ Months Ago

An array of tile graphics. Like this:

Code: [ Select ]

myMap =[ [0,0,0,0,0,0,0,0,0,0,0,0,0,0],
       [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
       [0,0,1,0,0,2,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,1,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,2,0,1,0,0,0,0,0,0],
       [0,0,1,0,0,0,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,1,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
       [0,0,1,0,0,2,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,1,0,1,0,0,0,0,0,0],
       [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
       [0,1,1,1,1,1,1,1,0,0,0,0,0,0] ];
  1. myMap =[ [0,0,0,0,0,0,0,0,0,0,0,0,0,0],
  2.        [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
  3.        [0,0,1,0,0,2,0,1,0,0,0,0,0,0],
  4.        [0,0,0,0,0,1,0,1,0,0,0,0,0,0],
  5.        [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
  6.        [0,0,0,0,0,2,0,1,0,0,0,0,0,0],
  7.        [0,0,1,0,0,0,0,1,0,0,0,0,0,0],
  8.        [0,0,0,0,0,1,0,1,0,0,0,0,0,0],
  9.        [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
  10.        [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
  11.        [0,0,1,0,0,2,0,1,0,0,0,0,0,0],
  12.        [0,0,0,0,0,1,0,1,0,0,0,0,0,0],
  13.        [0,0,0,0,0,0,0,1,0,0,0,0,0,0],
  14.        [0,1,1,1,1,1,1,1,0,0,0,0,0,0] ];


Is there a way I could put a '3' onto one of the 2's on the myMap code?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.