|
-
Total Universe Mod
movieclip scale based on mouse position
Hi guys, I'm working an OSX dock style menu. One where the item your touching grows to a certain size and the adjoining items blend their sizes. It's a verticle version btw. I'd like only the 2 nearest buttons above and below to blend
It's looking good but I'm having trouble figuring out the math that will force the buttons scale to be inbetween %100 and %200.
I want it so that when there is zero distance between the mouse and the button (rolled over the button), the button grows to %200 and as the mouse moves away it shrinks back to %100.
I'll post the code I'm using atm if you want but I don't think it's the best way.
-
Cheap Bear Imitation
-
Total Universe Mod
looks good man, I'm actually using the menu as a list of mouse listeners but I think using a goal variable rather than the static number I have now will do the trick. I'll have some time to mess with it in a couple hours. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|