View Single Post
  #10  
Old 03-04-2007, 03:25 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Angel_Light View Post
I'm just curious, is there a way to make it add and minus speed using the mouse wheel?
In a timeout something like this
PHP Code:
function onTimeOut()

 if ( 
mousewheeldelta && this.speed )
 {
  
this.speed -= 1;
 }
 if ( 
mousewheeldelta && this.speed 10 )
 {
  
this.speed += 1;
 }
 
setTimer0.05 );

Sorry about horrible formatting ... the mousewheeldeltas might need to be altered (I forget which way is which).
[EDIT]
Tested this, and fixed the mousewheeldeltas.
Also, this.status = abs(temp.status - 1);?
Should be:
this.status = 1 - this.status;
or:
this.status = abs(this.status - 1);
__________________

Last edited by cbk1994; 03-04-2007 at 03:36 PM..
Reply With Quote