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
33,697
Reaction score
8,496
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.
 

Latest Threads

Latest Profile Posts

so... I decided since a park was an area in my game... here's an enemy that's slide with a hand behind it. cause why not.
Hot chocolate and music make studying and note-taking much easier :kaoluv:
Until my hand cramps up from writing too much!
Doing RPG Maker News for 21st September 2021


Malak is still waiting for Dark Deception Chapter 4... This was him yesterday after another sugar crash.
Again, he's fine. He's just bored at this point, considering he's exhausted his entire vacation bucket list.
Am I the only one who files custom resources under specific folders to remember who to credit? :kaoswt2:
1632263519730.png

Forum statistics

Threads
115,270
Messages
1,088,500
Members
149,875
Latest member
BlaireBear1
Top