corlenbelspar [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=34704 Toggle Boolean? <p>I saw that putting boolean=!boolean is supposed to toggle a boolean variable, but it's not working for something like object.boolean=!object.boolean. How can I toggle a boolean?</p> https://www.lexaloffle.com/bbs/?tid=33193 https://www.lexaloffle.com/bbs/?tid=33193 Sat, 09 Feb 2019 01:08:47 UTC Map Symmetry Problem <div> <div style="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> map(level*8,0,0,0,8,15,0) for i=1,8,1 do map(level*8+8-i,0,56+i*8,0,1,15) 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>First I want to say Pico-8 is a lot of fun and I was able to get into it quickly despite barely any knowledge of LUA.</p> <p>So I got the idea to only draw half a level and mirror it to be symmetrical, however collision detection doesn't seem to work on the right side. I can post more if anyone needs more information, but I've included a GIF showing the issue and the code I used to generate the map.</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/34704/slith_0.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=33148 https://www.lexaloffle.com/bbs/?tid=33148 Tue, 05 Feb 2019 03:15:21 UTC