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