Platform Builder Forums

Main => Suggestions => Topic started by: CGM on January 23, 2020, 09:14:30 PM

Title: if key=none command
Post by: CGM on January 23, 2020, 09:14:30 PM
I really want a if key = none command.
Title: Re: if key=none command
Post by: War on January 24, 2020, 07:53:27 AM
You mean, a command to check if the player has no keys? Interesting.
Title: Re: if key=none command
Post by: CGM on January 24, 2020, 03:54:54 PM
No no no. I mean check to see if no keys (keys on a keyboard) are being pressed.
Title: Re: if key=none command
Post by: War on January 24, 2020, 09:10:52 PM
No no no. I mean check to see if no keys (keys on a keyboard) are being pressed.
Aaaaaaaaaaaahhhh...
Title: Re: if key=none command
Post by: TingThing on May 11, 2020, 04:10:50 AM
I should have said on the conditional page online that you can use != for key conditionals. This means your suggestion is already possible, although it would take a long line of code:


Code: [Select]

if key != up and key != down and key != left and key != right and key != jump and key != attack and key != pick and key != use
{


}


I'll update the website.
Title: Re: if key=none command
Post by: CGM on May 11, 2020, 04:12:29 AM
Yeah...That's inefficient.