Its possible to rebind keys??

0 favourites
  • 4 posts
From the Asset Store
Piano Tiles with Sound Keys - I don't have 50 words to type here
  • hi guys...do you think is possible to have the option of rebindable keys for the control of the game

    as long as i can tell, there is no way of tell what buttom in the keyboard is being pushed,it would be nice to get the input and be able to store it in a variable

  • The keyboard object has a "Keyboard.LastKeyCode" expression which returns a number representing the last key pressed (which you can store in a variable), and a "On key code pressed" trigger which receives the key code as a parameter. You can create variables to store the KeyCodes currently assigned to each action in your custom controls, and then use the "On key code pressed" trigger to execute them.

    I attached an example capx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The keyboard object has a "Keyboard.LastKeyCode" expression which returns a number representing the last key pressed (which you can store in a variable), and a "On key code pressed" trigger which receives the key code as a parameter. You can create variables to store the KeyCodes currently assigned to each action in your custom controls, and then use the "On key code pressed" trigger to execute them.

    I attached an example capx

    wow!!! thanks!!!

  • I have been looking for this too, Thank you

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)