Dear list,
I am fairly new to lingo and I have encountered some problems lately. I am
making kind of an adventure game (like myst or so) and I need to have a
sprite follow the mousecursor. My code is this:
on mouseUp me
global gkeyfollow
if gkeyfollow = 0 then
gkeyfollow=1
puppetsprite 17, TRUE
sprite(17).constraint = 11
else
gkeyfollow = 0
end if
end
This following part is a movie script:
on idle
global gkeyfollow
if gkeyfollow = 1 then
sprite(17).locH = the mouseh
sprite(17).locV = the mousev
updatestage
else
sprite(17).constraint = 0
sprite(17).locH = 2000
sprite(17).locV = 1000
end if
end
This all works fine but now none of the on mouseup handlers in the
constraining area work while the sprite is following the mouse.
My other problem is how to get variables remain in memory as stated in the
director help file: "store any special cursor resource number as a global
variable that remains in memory between movies."
Tomek Otto
_________________________________________________________________________
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!]