Thread: system
View Single Post
  #6  
Old 10-04-2001, 05:56 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Quote:
Originally posted by Enigma_GP6
oh, okay, well, you have to be more specific, as I remember, if you want it to do that, it would go something like this, but you may revise all you want, because I am making this up as I go.:

PHP Code:
while (keydown(keyname)&&(keydown(name)){
if (
keydown(name)&&keydown(name)){
//commands here,
//like the sprites and stuff like that, this in
//a loop, but with an 'if' command,
//so only if, beacuse I found that a plain
// 'while' loop seems to not work right on some
//occasions. Just put in stuff like 
playersprite=spritename;
 }
}
timeout 0.05
And that outhgt to do it, although I don't exactly know what you mean, but that is what I am getting out of what you need.

-Rebel95
I don't believe you would need a timeout, an if (keydown(#)) should just work without any loop.

And I believe yours would lag a lot.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote