Log In  

Cart #56192 | 2018-09-05 | Code ▽ | Embed ▽ | No License
2

PICO-8 has built in ESDF controls, but they need to be accessed from inside btn() and btnp(), by calling btn(x,1) or btn(x,0), as if you're setting up separate inputs for separate players. But what if you want to use ESDF as an alternate control scheme for a single player, so the player can alternate between the arrow keys and ESDF, depending on their preference?

Insert bt() and btp() into your program, and call them instead of btn() and btnp(). This small change will allow players to use esdf controls, with minor edits to your code!

P#56193 2018-09-04 20:40 ( Edited 2018-09-05 00:40)


[Please log in to post a comment]