The Daily Click ::. Forums ::. Klik Coding Help ::. "any key" question for TGF
 

Post Reply  Post Oekaki 
 

Posted By Message

Weston L



Registered
  16/12/2002
Points
  1603
21st February, 2004 at 23:23:07 -

Is it possible to make a condition that is "Upon pressing any key except backspace" ?

 
n/a

Nick of All Trades

Possibly Insane

Registered
  03/09/2002
Points
  2312

Game of the Week Winner
22nd February, 2004 at 02:16:17 -

Try this:

-Create a random active object.
-Make it have a short path movement (around 32 pixels, make it that big too), make it loop and reverse at end.
-Make the object stop at the start of the level.
-When the backspace button repeatly is pressed, the object speed is 50.
-When the any key is pressed AND the object is stopped, then your action will happen.

Or you could:

-When repeated NOT pressing backspace AND pressing the any key.

Hope it succed!

Image Edited by the Author.

 
n/a

renneF



Registered
  02/08/2003
Points
  672
22nd February, 2004 at 03:36:29 -

Yep:

Upon pressing any key
+(negate) Upon pressing backspace

Make sure its in that order aswell or else it wont work

 
Image

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
22nd February, 2004 at 05:40:57 -

Uhh:

* When pressing backspace: Do stuff

* When pressing any key: Do other stuff

Keep the order of events.

 
gone fishin'

Mr Icekirby



Registered
  18/12/2003
Points
  846
25th February, 2004 at 23:05:51 -

well those are good ways of doing that!

 
Mr Icekirby says so!
OBEY ME!
   

Post Reply



 



Advertisement

Worth A Click