Log In  

Cart #reconfig_arrow_keys-2 | 2022-11-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

(v02 11-16-22)
TO LOAD THIS PICO-8 CART, in immediate mode, type:
load #reconfig_arrow_keys

VVhat's New ?

  • 11-16-22: Changed the default keystrokes to normal arrow keys. Should work now.
  • 11-16-22: Got a nice doodle for the covert art.

Use the arrow keys to navigate and press 🅾️ to reconfigure the arrow keys to anything you like.

Hello.

One thing I noticed about new Pico-8 is that KeyConfig() no longer works inside code. Now this is not something recent. I think it was years ago that it =DID= work, however.

So as coders we must find a workaround. Here now is one I have written to examine full of many remarks and comments explaining what is going on. Not only does it let you choose SHIFT and other non-standard keys for your arrows, it also records them so even if you shut it down and bring it back up later it remembers what you recorded.

What keys should you choose ? Well of course there is the classic arrow keys. But how about W A S D or I J K M. In Ultima 1 for the Apple ][ computer it was the the , . ENTER and / keys to move West, East, North, and South.

If you want to see a raw key viewer which will show you the numeric value for every single key on your keyboard, I wrote a tool for that you can find HERE:

https://www.lexaloffle.com/bbs/?pid=117149

Just for fun, here is the Shrinko-8'ed version of the reconfigure cart. :)

Cart #gasorugeza-0 | 2022-11-16 | Code ▽ | Embed ▽ | No License
5

HOPE THIS HELPS !

P#120777 2022-11-15 22:19 ( Edited 2022-11-16 19:42)

Since I only undertsand the basics of Pico-8 programming , your new style of verbose comments was a great help. Thanks.

P#120808 2022-11-16 21:14

hi @phil ! Glad to help. That will be my new style of coding from now on, to be as informative as I can - now that I know if I accidentally use up all of memory I can have Shrinko-8 to bail me out. :)

P#120809 2022-11-16 21:58

i made the cover of the game after 4 hours. great game!

P#122424 2022-12-14 22:57

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 09:31:10 | 0.013s | Q:20