cheers irv,
the location that you dont understand is : Each door will set the position 
of the charecter in the next room. I cannot make it work
I have tried:
on the door :
global gListOfInformation

on enterFrame me
   if sprite 41 intersects sprite(me.spriteNum) then
     gListOfInformation = [point(41:200,42:300)]
     go to "room02"
   end
end

on the frame(room)
global gListOfInformation

on prepareFrame me  -- use prepare frame to only do this once
    sprite(41).loc = gListOfInformation[41,42]
    gListOfInformation = [:]  -- clear info
end

cheers jon

>From: Irv Kalb <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: <lingo-l> Setting the point of sprite(41)
>Date: Wed, 27 Dec 2000 12:05:28 -0800
>
>At 7:22 PM +0000 12/27/00, Jonathan Rees wrote:
>>I need help on telling a frame script where to place sprite(41)
>>
>>I have 6 rooms in my movie, all with 2 doorws in each
>>
>>For example on door 1 in the first room I will attatch a script :
>>
>>on enterframe me
>>if sprite 41 intersects sprite(me.spriteunm) then
>>go to "room02"
>>TELL NEXT ROOM WHERE TO PUT SPRITE(41) HERE
>>end if
>>end
>>
>>on the frame script of each room Iwill have :
>>
>>on enterframe me
>>sprite(41).point=point"GET IT FROM PREVIOUS DOOR"
>>end
>>
>
>Jonathan,
>
>Obviously I don't understand your application (rooms, doors, sprite
>41???).   However, I may be able to give you a way to think about
>your problem differently.
>
>In your current approach, you want to be able to tell a sprite some
>information directly, even though the sprite doesn't exist yet (or
>may exist but you want to tell a different incarnation of it
>something).  Instead of this, you could store the intormation you
>want into a global list.  Then, when you get to your intended frame,
>you get the information you want out of your global list and apply it
>then.  For example, when you detect that you want to go to some other
>frame and set some new information, do something like this (using a
>modification of your code):
>
>global gListOfInformation
>
>on enterFrame me
>   if sprite 41 intersects sprite(me.spriteNum) then
>     gListOfInformation = [41: <some location that I don't quite 
>understand>]
>     -- you could add anything else you want to save to this list
>     go to "room02"
>   end
>end
>
>On the frame script of the room
>
>global gListOfInformation
>
>on prepareFrame me  -- use prepare frame to only do this once
>    sprite(41).loc = gListOfInformation[41] -- use "loc" instead of point
>    -- optionally pull out any other info you saved
>    gListOfInformation = [:]  -- clear info
>end
>
>Irv
>
>--
>Lingo / Director / Shockwave development for all occasions.
>
>        (Over two millions lines of Lingo code served!)
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/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!]
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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