Page 1 of 1

IsKeyNotDown?

Posted: Mon Dec 24, 2012 12:52 am
by wabogenadod
Is there a way to check if a key is not down?
For instance:
if (IsKeyNotDown(What ever key)).

Just so that I'm able to select weapons without jumping to the next one every frame but instead every time i press the button. Theres probably something in the manual but i can't find it so is there anyone that could help?

Thanks

Re: IsKeyNotDown?

Posted: Mon Dec 24, 2012 12:16 pm
by Juutis
Negation should do the trick. In Simkin it's as follows, if I remember correctly:

Code: Select all

if(not IsKeyDown(What ever key))
or

Code: Select all

if(IsKeyDown(What ever key) = false)