![]() |
keydown||pressed
Well, I was wondering if there is a way to check if the player presses a specific button down twice..
How would I do this? Like if they press up once and then press it again they start running etc thx |
Just check for the key and count to see if it were pressed twice, but you'd need to reset it if they didnt press the key again after a certain amount of time.
|
How would I check to see if they pressed it twice?
Set a flag the first time and do a statement checking if it's already pressed? I'm also a bit confused on how to check after a period of time, would I use a timeout throughout the script? |
This probably isnt the best way...but...
NPC Code: Heres something I thought might help...I don't know if this works, I didn't test it. Edit: Tested it and fixed bugs. |
Ah!, thanks for the definitions too, you've really helped me :)!
Thanks again |
Quote:
|
Ah, okay :)
I havn't tested it myself yet, but I will do when I get home, i'll also play with it like you've said. |
Quote:
|
Quote:
Quote:
|
It was a example, I needed help.
|
it's too bloated for real use anyway (granted that's not the point of the rule)
hey, why is R0bin back? |
Bloated? Yeah I'm sure you could shorten it but I wouldn't use the term 'Bloated'.
|
I'll be editing it majorly anyway :)
I'll just say that it's a V 1.0 going through to V 5.0, hopefully. |
| All times are GMT +2. The time now is 07:08 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.