Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Do we have to use the Z key? Can we change the key to any key we like?

It's actually the 'confirm' key, so depending on your configuration, it can be any key.

You can modify line 218 and at "if (Input.isTriggered('ok'))" you can replace "ok" with any of these inputs:

ok – Z, ENTER, SPACE
escape – X, ESC, INSERT
shift – SHIFT
tab – TAB
control – CTRL, ALT
right – RIGHT ARROW
left – LEFT ARROW
up – UP ARROW
down – DOWN ARROW

You can also add a line like "AudioManager.playSe({name: "YOURSOUNDEFFECTHERE", volume: 100, pitch: 90, pan: 100});" in the same section of code and you can make a sound effect play every time the player button mashes to give better feedback.