On 2/7/01 8:33 AM, "Gene Fritzinger" <[EMAIL PROTECTED]>
wrote:

> Can someone suggest a way of setting the visible of a sprite based upon the
> location of the cursor defined by  a .rect? eg (25, 25, 100, 100)
> 
> Thanx In Advance
> G Fritzinger
> Synectics Group
> 
> [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!]
> 

One solution would be to create a "trigger" sprite which would function
similar to an area of an image map in HTML.  This trigger sprite would be an
invisible sprite that has the rect  coordinates mentioned above.  After this
is in place, all you would need to do is attach a script to it which changes
the visibility property of your target sprite on a mouseEnter.

On mouseenter
    sprite(x).visibility = true
End

You could also and a mouse leave in the same script to make the target
sprite disappear.

On mouseLeave
    sprite(x).visibility = flase
End

Hope this helps.


Brad Bouté
Senior Instructor, Collins College


[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