Roland wrote:
> 
> Hello all
> 
> I do have 4 text labels and 4 small graphics (which do belong together) that
> I would like to place on the stage at random. Could someone give me a
> pointer on how to approach this?

seat-of-the-pants code, possibly full of syntax errors:

locList = [a list of at least four points]
textOffset = point(how far from the graphic the text label should be)
repeat with x = 1 to 4
  randNum = random(locList.count)
  sprite(x).loc = locList[randNum] -- place the graphic
  sprite(x + 4).loc = locList[randNum] + textOffset  -- place the text label
  locList.deleteAt(randNum)
end repeat

This will place the graphics with their labels at a random four of the locations in 
the list in random order.


-- 
Carl West   [EMAIL PROTECTED]   http://eisen.home.attbi.com

I have no superfluous leisure; my stay must be stolen out
of other affairs; but I will attend you awhile.

           - Isabella, Measure for Measure, Act 3 Scene 1
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to