corlenbelspar [Lexaloffle Blog Feed] 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> 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="" alt="" /> Tue, 05 Feb 2019 03:15:21 UTC