Thread: new controll?
View Single Post
  #7  
Old 01-15-2002, 08:11 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Yeah, pretty much what they said. You'd first start off with a timeout=.05, then in a timeout loop have a this.timer=(this.timer+1)%3 (I picked that one up from one of Liquid's item scripts. It sorta moderates the cursor speed.)
Then use this.pos or something to keep track of the cursor position, with a %# (# is 1 higher than the max value).
Then use showimg, with x and y using screenwidth and screenheight (use division)
Then use something like
NPC Code:

if(keydown(key)&&this.timer=2){
script;
}



There. I also proved to myself I didn't forget what I was doing over my almost 2-month holiday.

All the same, hope that helps.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote