awesomonster [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=123214 Help with making a menu with two sides? <p>Hello, I'm very new to pico-8 (and fairly inexperienced with coding in general) and I need a bit of help with some menu code. I'd like to have a menu that has two sections to it that you can move between with the left and right arrows. I'm working off of pixelcod's menu code example, here is what I have so far:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>--menu system function init_menu() menu={&quot;menu1&quot;,&quot;menu2&quot;} menu.y=12 menu1 = {} menu1.x=25 menu1.options={&quot;𝘸𝘒𝘭𝘬&quot;,&quot;𝘡𝘒𝘭𝘬&quot;,&quot;𝘡𝘒𝘬𝘦&quot;,&quot;𝘨π˜ͺ𝘷𝘦&quot;,&quot;π˜ͺ𝘯𝘷.&quot;} menu2 = {} menu2.x=88 menu2.options={&quot;𝘸𝘩𝘒𝘱&quot;,&quot;𝘬π˜ͺ𝘴𝘴&quot;,&quot;π˜₯π˜ͺ𝘴𝘴&quot;,&quot;𝘧𝘳𝘦𝘡&quot;,&quot;𝘴𝘡𝘯𝘺&quot;} menu.amt=0 menu.sel=1 menu.swp=false for i in all(menu1.options,menu2.options) do menu.amt+=1 end end function update_menu() update_cursor() end function draw_menu() for i=1,menu.amt do oset=i*8 end if menu.swp==true then if i==menu.sel then spr(39,menu2.x,menu.y+oset,2,1) print(menu2.options[i],menu2.x,menu.y+oset+1,10) else spr(55,menu2.x,menu.y+oset,2,1) print(menu2.options[i],menu2.x,menu.y+oset+1,9) end else if i==menu.sel then spr(39,menu1.x,menu.y+oset,2,1) print(menu1.options[i],menu1.x,menu.y+oset+1,10) else spr(55,menu1.x,menu.y+oset,2,1) print(menu1.options[i],menu1.x,menu.y+oset+1,9) end end end function update_cursor() if (btnp(⬆️)) menu.sel-=1 sfx(1) if (btnp(⬇️)) menu.sel+=1 sfx(1) if (btnp(⬅️)) menu.swp=false sfx(1) if (btnp(➑️)) menu.swp=true sfx(1) if (btnp(❎)) sfx(1) if (menu.sel&gt;menu.amt) menu.sel=1 if (menu.sel&lt;=0) menu.sel=menu.amt end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>With this, it has the two menus that you can swap between left and right but the menu options don't show up/come up as [NIL]. At this point, I'm sure its something simple that I'm just not understanding! I'm also willing to more or less start over if it means I get the result I need (if you've ever played it, I am making a Princess Tomato in Salad Kingdom homage and want it to look like this: <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/123214/Orange_park.jpg" alt="" />). Any help I can get will be greatly appreciated!</p> https://www.lexaloffle.com/bbs/?tid=151640 https://www.lexaloffle.com/bbs/?tid=151640 Sun, 21 Sep 2025 04:41:48 UTC Rolling Bones <p> <table><tr><td> <a href="/bbs/?pid=172947#p"> <img src="/bbs/thumbs/pico8_hurupafama-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=172947#p"> Rolling Bones</a><br><br> by <a href="/bbs/?uid=123214"> awesomonster</a> <br><br><br> <a href="/bbs/?pid=172947#p"> [Click to Play]</a> </td></tr></table> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/123214/rollingbones_1.png" alt="" /></p> <p>Hello, this is my first pico-8 game, Rolling Bones! In it, you are a skull who wants to go out on a date, but all your bones have been scattered to the winds! Roll around the field to find them but watch out for assorted junk! Sticks and stones can break your bone and other items can look like bones but will not fit anywhere in your skeleton (I promise, I've tried). Can you collect all 20 bones to get ready for your big date?</p> https://www.lexaloffle.com/bbs/?tid=151225 https://www.lexaloffle.com/bbs/?tid=151225 Thu, 28 Aug 2025 19:48:58 UTC