Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Problem with the keyboard module

Riku

Member

hey guys^^
my problem is the keyboard module from cybersam.
The function that the key is pressed once doesnt work for me Oo
ok here my example when I start a new project.

I put the script into the script editor above main.
Then I create on a empty map a paralell event with a condition fork.
In the script box I put in Input.pressed?(Input::Letters["A"])
Then I play sound.
I start the game and press down A.
The sound plays without a pause. how it should be

But If I write in the scriptbox Input.triggered?(Input::Letters["A"])
The sound is played randomly while pressing down Letter A.
Before it plays the sound it waits a random number of time. <<<strange or not?

In the normalcase he should be played once with every time I press Letter A down.
heres the project with the problem^^
http://www.megaupload.com/de/?d=A6BL01MI

plz help me:D
 
Well, it is not the pixelmovement script who needs compatibility, it is my Input script. It has a bug, I will fix it soon.
When you see that the version of my script is more than 1.20, It will be fixed and ready for use.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top