Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP: Mouseover

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!
I want to make a button with an mouseover funktion and when im entering the button it shall chage to another pic! Not a problem!
The problem comes when i want another picture to be shown at the same time but in a nother position! How can i do this without making a picture with with both the buttonpic and the secondary pic???
 
Just reference the sprite channel the other image is in.
eg sprite(5).member = newitem

If you have a blank space that you want to put an image into you can use a few ways to hide it till its needed. Easy way is to put it off screen somewhere and use code to place it where you want

eg
on mouseenter me
sprite(me.spritenum).member = "new button pic"
sprite(5).member = "new pic"
sprite(5).loc = point(100,100)
end

on mouseleave me
sprite(me.spritenum).member = "old button pic"
sprite(5).loc = point(-1000,-1000)
end


I think this is what you are asking.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top