cheddargt [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=69316 lemillion progress update <p> <table><tr><td> <a href="/bbs/?pid=146366#p"> <img src="/bbs/thumbs/pico8_fujujosete-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=146366#p"> fujujosete</a><br><br> by <a href="/bbs/?uid=69316"> cheddargt</a> <br><br><br> <a href="/bbs/?pid=146366#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=141645 https://www.lexaloffle.com/bbs/?tid=141645 Thu, 11 Apr 2024 15:11:23 UTC Player jumping without touching the ground <p>Hello everyone! I'm developing a platformer based on My Hero Academy and for some reason, my player is able to jump while touching a jump-through tile, when they should only be able to jump if they're on top of it.</p> <p>Does anyone know why this happens?</p> <img style="margin-bottom:16px" border=0 src="/media/69316/Screenshot from 2024-03-12 12-36-02.png" alt="" /> <p>Code for jumping:</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>--jump if btn(❎) and player.landed then player.dy-=player.boost player.landed=false 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>Code for landing:</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>if collide_map(player,&quot;down&quot;, flags.base) then player.landed=true player.falling=false player.dy=0 player.y-=((player.y+player.h+1)%8)-1</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Cartridge below 👇</p> <p> <table><tr><td> <a href="/bbs/?pid=142811#p"> <img src="/bbs/thumbs/pico8_dusiwguya-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=142811#p"> platformer_jump_bug</a><br><br> by <a href="/bbs/?uid=69316"> cheddargt</a> <br><br><br> <a href="/bbs/?pid=142811#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=140612 https://www.lexaloffle.com/bbs/?tid=140612 Tue, 12 Mar 2024 15:16:42 UTC Lemillion v0.7 <p> <table><tr><td> <a href="/bbs/?pid=142654#p"> <img src="/bbs/thumbs/pico8_lemillion-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=142654#p"> Lemillion 0.7</a><br><br> by <a href="/bbs/?uid=69316"> cheddargt</a> <br><br><br> <a href="/bbs/?pid=142654#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=140610 https://www.lexaloffle.com/bbs/?tid=140610 Tue, 12 Mar 2024 15:09:36 UTC lemillion <p> <table><tr><td> <a href="/bbs/?pid=142654#p"> <img src="/bbs/thumbs/pico8_lemillion-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=142654#p"> Lemillion 0.7</a><br><br> by <a href="/bbs/?uid=69316"> cheddargt</a> <br><br><br> <a href="/bbs/?pid=142654#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=140568 https://www.lexaloffle.com/bbs/?tid=140568 Sat, 09 Mar 2024 01:08:57 UTC Joystick default mapped to player 2 (index 1) <p>I was trying to run Pico8 with joystick on linux and wasn't being able to. </p> <p>Until I saw this reddit post: <a href="https://www.reddit.com/r/EmuDeck/comments/17dohf8/comment/kspg7o8/">https://www.reddit.com/r/EmuDeck/comments/17dohf8/comment/kspg7o8/</a></p> <p>The fact that he was using a steam deck made me think our issues could be related. I then checked the config.txt and the following line:</p> <p>// Specify which player index joystick control begins at (0..7)<br /> joystick_index 1</p> <p>Was defaulting joystick's behavior to player 2 instead of 1, even though the index is stated to start at 0 on the comment.</p> <p>I then changed to this</p> <p>// Specify which player index joystick control begins at (0..7)<br /> joystick_index 0</p> <p>And now I can get it to work. Maybe the default behavior was supposed to be joystick to player 1?</p> https://www.lexaloffle.com/bbs/?tid=140447 https://www.lexaloffle.com/bbs/?tid=140447 Thu, 29 Feb 2024 15:19:27 UTC