Unpress()
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
verge-rpg.com

This is the talkback thread for the documentation page: unpress

Posted on 2012-01-05 19:08:14

Technetium

Note that you CANNOT use key[] scan codes with Unpress. It only works with button values. Not only that, but the following code will NOT work:
if(key[SCAN_DOWN])
{
  //code to move a menu pointer down
  unpress(6);
}

Even though key[SCAN_DOWN] and the variable "down" will both get detected by pressing the down arrow key while updatecontrols is in effect, the game will continue to detect that key[SCAN_DOWN] is true even though unpress(6) will set the button variable "down" to false.

Use the button variables whenever possible.

Posted on 2012-01-05 19:27:21


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.