Slimeyy-8 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=53120 Error: ATTEMPT TO CALL FIELD `IS COLLECTED` (A BOOLEAN VALUE) <p>I'm new to pico-8 and when trying to check if a boolean is false with </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 is_point_in_rect(coin.x,coin.y,left,top,right,bottom) and not coin.is_collected() then</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>it returns an error<br /> (I tried removing the &quot;and not coin.is_collected&quot; to see if the error was with the is_point_in_rect() function, and it didn't bring up an error)<br /> <table><tr><td> <a href="/bbs/?pid=106976#p"> <img src="/bbs/thumbs/pico8_hagomiyewa-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=106976#p"> hagomiyewa</a><br><br> by <a href="/bbs/?uid=53120"> Slimeyy-8</a> <br><br><br> <a href="/bbs/?pid=106976#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=46598 https://www.lexaloffle.com/bbs/?tid=46598 Tue, 15 Feb 2022 15:46:30 UTC