Log In  

I'm currently working on a game that requires ~10 different buttons. As it stands, I'm using all of the inputs from controller 1 (Up,Down,Left,Right,O,X,Pause) aswell as a few inputs from controller 2 (O,X)

This game will be exported to HTML5 to be played in browser, and I was wondering if there was any way to modify the exported js/html files to allow me to rebind player 1's O/X to be Q and W, and player 2's O/X to be O and P.

This would also mean I would need to rebind the pause button to ONLY be Enter instead of being both Enter and P.
(I use the Enter key as an input in my game by using poke to disable the pause menu)

If anyone knows of a solution please let me know, it would be greatly appreciated!

PS: If remapping the pause button isn't possible then I can work around that, I just need the ability to rebind the main controls :)

P#91131 2021-04-26 17:00 ( Edited 2021-04-26 17:10)

:: merwok

I think there are HTML templates (shared on this BBS and/or github) with custom controls. I’m not sure you can remap the keys, but at least you can catch any key event in javascript and send custom keys to the pico8 canvas.

P#91159 2021-04-26 22:09

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-10-02 00:58:31 | 0.004s | Q:7