Trouble Making a Sound Play Upon Key Press

HelperToHero

Warper
Member
Joined
Jul 20, 2017
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Hello! I'm trying to add a feature to my game where the player will press the Z key while on the field and it will play a clown honk sound. A honk button. I managed to get it working, sort of, but it only works when you press the D key (rather than Z) and only actually plays sometimes. Does anyone know how to get this working?

TL,DR: how do I get a sound effect to play whenever the player presses Z?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
1) if it only plays sometimes, then you made a mistake with your event and we need a screenshot of it to help you solve that

2) Ace doesn't support a keyboard. The primary input device is a game controller, and when the conditional branch checks for "button pressed" it means the gamepad button :Z and not the key Z on the keyboard.
There is a function that maps a part of the keyboard to a simulated gamepad, and the player (not the developer) can change that key-mapping by pressing F1 in the game.

You'll need a script to implement full keyboard support.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top