ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Quick question about actionscript?



Rob

ClioSport Moderator
Anyone on here that knows this?

Basically i currently have an interface which plays sounds relevant to the mouse's X position, and then edits the volume relevant to the Y axis and currently the volume is loud when the mouse is at the bottom and quiet at the top, this is need to be the other way round and really cant suss it...

Code for it is....

currentXmouse = _xmouse;
currentYmouse = _ymouse;

beat1VAR.setVolume(100/Stage.height * currentYmouse);



I basically need to invert ymouse?

Or just make it somehow so that when you move the actual mouse on the computer up it moves down?

Winner gets a toffee crisp in the post.
 


Top