> How is possible to move castmembers on the stage on the fly. I would 
> like to find the first empty frame available and place several 
> castmembers in different channels all on the fly but at the moment I 
> don't have a clue how to achieve this.

You can find empty sprite channels by checking if the memberNum of a sprite
equals 0, and if it does, puppet that sprite channel, set the member of that
sprite to some cast member (by member name or cast member number), and then
set its location, something like this:

on puppetSomething whichChannel, whichMember, whatLocH, whatLocV 
  if sprite(whichChannel).memberNum = 0 then
    sprite(whichChannel).puppet = TRUE
    sprite(whichChannel).member = whichMember
    sprite(whichChannel).loc = point(whatLocH,whatLocV)
  end if
end

In the message window type:

puppetSomething 2, "square", 100, 150

Assuming you have a castmember named "square" and channel 2 is empty, this
will place the sprite at point(100,150). How you manage what member is in
which channel and its location can be done with a list.

HTH
Erik



[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