Sticky Keys

0 favourites
  • 11 posts
From the Asset Store
Piano Keys
$3.99 USD
A musical typing game where the goal is to play a song by pressing the matching keys as fast as you can!
  • Good morning <img src="smileys/smiley1.gif" border="0" align="middle" /> ,

    When i test my game everything is alright at the beginning, the player is walking, jumping, dying, ...etc, but when I'm pressing the right arrow to make the player run and while he is running (right arrow is down) i press the shift to jump (shift arrow is down) a warning message from windows appear with a title of "sticky keys" and the player will start to run without pressing any thing (stop recognizing user input).

    How can i solve this problem.

    Thanks in advance. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Change it from shift, or tell the people to change their shortcuts.

  • Thanks sqiddster, i will try it and let u know if it works with me.

  • You can deactivate the sticky keys by clicking on the link in the poping window, and then uncheck "Activate sticky keys when maj is pressed five times" (an option like that).

    But your users will have to do the same.

    Add an object keyboard.

    Make an event "on key pressed" select another key than "shift"

    Action: spriteplayer => Platformer => Simulate control => Jump

    This way you are handling the jump by yourself.

    Note: this means the player will be able to jump through your chosen key and shift.

    If you don't want that, you'll have to turn "Default control" in the platformer properties to no, but you'll also have to create events to simulate going right and left. (you can assign those events to the right and left arrows).

  • Thanks a lot Kyatric.

    U r a great person, helping people all the time without any fatigue. <img src="smileys/smiley42.gif" border="0" align="middle" />

  • I tried to change the shift to jump and simulate the platform, but it doesn't work in the right way.<img src="smileys/smiley5.gif" border="0" align="middle">

    Jump using the Space

  • Does anyone know what i need to change on the capx file to make the jump work properly.

  • How is it not working? it seems to me..

  • smitchell, using the space not the shift

  • Fixed and commented

    Take the time to read/understand it and be sure to check Construct 2's manual and in peculiar how events work.

    It should help you making your game easier.

  • Thanks again Kyatric <img src="smileys/smiley1.gif" border="0" align="middle" />

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