----- Original Message ----- From: "Roland" <[EMAIL PROTECTED]> > > 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?
sp1 = sprite( 1 ) sp2 = sprite( 2 ) sp1.loc = point( random( 100 ), random( 100 ) ) sp2.loc = sp1.loc + point( sp1.rect.width + 5, 0 ) This places sprite(1) somewhere random, and puts sprite(2) 5 pixels to the right of sprite(1). This does however, assume that both sprites have their regpoint at (0,0), otherwise sp2 may be misaligned. - Robert [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!]
