block one key

Non-platform specific questions.

block one key

Postby sportmaster » Tue Jun 14, 2011 9:25 pm

what is the way to block one key for example key down space disable:
Code: Select all
textNumber+=1;
and if number is above 5 the space is disable but other keys are enable.
User avatar
sportmaster
 
Posts: 32
Joined: Thu Jun 25, 2009 8:29 pm
Score: 0 Give a positive score

Re: block one key

Postby schnellboot » Tue Jun 14, 2011 9:48 pm

this is one way to do it
viewtopic.php?f=1&t=10271#p70421
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: block one key

Postby savvy » Wed Jun 15, 2011 9:09 am

or this...

KEY down space event ...
Code: Select all
if(textNumber<=5)
{
textNumber+=1;
}


savvy
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest