Xyphien Forums

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Resource icon

Keyboard plugin version 1.1

No permission to download
Commands:

  • Input.keyTriggered
    • check if any key has been activated
  • Input.keyPressed
    • check if any key has been pressed down
  • Input.keyReleased
    • check if any key has been released

You can call the plugin with A-Z, 0-9 and F1-F12

Also using Javascript KeyCodes up to 256 is also allowed
Here are some examples, call them from a script command
JavaScript:
if(Input.keyTriggered("Y")){

$gamePlayer.requestBalloon(1);

console.log("You pressed Y");

}



if(Input.keyTriggered(219)){

$gamePlayer.requestBalloon(10);

console.log("You pressed [");

}
Author
eivl
Downloads
685
Views
685
First release
Last update
Rating
4.43 star(s) 7 ratings

More resources from eivl

Latest updates

  1. Remap Esc Key

    You are now able to map Esc key
  2. Update help text

    Help text did not have correct information. Been updated to reflect this.

Latest reviews

it's great Plug-ins.
And i wonder its terms of use.
  • Anonymous
  • 4.00 star(s)
  • Version: version 1.1
It's good though. But everytime I want to try Driftwoods Blitz Skill, it says 'Syntax Error' and shows me the script command.
It's very useful. Anyway to get it to work in conditional branches?
Great plugin :)
(Will be in good use for creating more unique games)

Btw, any ideas to know how to Keybinder the space bar and the direction keys?
Any time I tried to use this, it would say "SyntaxError Unexpected end imput" please help :(
eivl
eivl
Elaborate what you are doing, i might have done something wrong. How are you calling the plugin?
This will make my custom Blitz skill possible, thank you so much.
Exactly what I needed to make custom bindings.
Top