851523 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=72842 Broken television <p> <table><tr><td> <a href="/bbs/?pid=131844#p"> <img src="/bbs/thumbs/pico8_brokentv-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=131844#p"> Broken television</a><br><br> by <a href="/bbs/?uid=72842"> 851523</a> <br><br><br> <a href="/bbs/?pid=131844#p"> [Click to Play]</a> </td></tr></table> <br /> I was just messing around in the sound editor and my sister said it sounds like a broken television so i made this. Dont ask why im uploading this</p> https://www.lexaloffle.com/bbs/?tid=53373 https://www.lexaloffle.com/bbs/?tid=53373 Tue, 11 Jul 2023 14:45:51 UTC I need some help with tables <h2>Help with tables</h2> <p>So I have a function for creating text with sprites (I'm sure people have done this already, but i specifically want help with one thing):</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>charspr{74,75,76,77,78,79,90,91,92,93,94,95,106,107,108,109,110,111,122,123,124,125,126,127,138,139,140,141,142,143,154,155,156,157,158,159,170,171,172,173,174,175,186,187,188} charname{&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;d&quot;,&quot;e&quot;,&quot;f&quot;,&quot;g&quot;,&quot;h&quot;,&quot;i&quot;,&quot;j&quot;,&quot;k&quot;,&quot;l&quot;,&quot;m&quot;,&quot;n&quot;,&quot;o&quot;,&quot;0&quot;,&quot;p&quot;,&quot;q&quot;,&quot;r&quot;,&quot;s&quot;,&quot;t&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;.&quot;,&quot;-&quot;,&quot;!&quot;,&quot;\&quot;&quot;,&quot;\'&quot;,&quot;,&quot;,&quot;:&quot;,&quot;;&quot;,&quot;𝘹&quot;,&quot;?&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot; &quot;} for i=0,#str,1 do spr(charspr[charname[sub(str,1,nil)]]) 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>Now the long tables charspr and charname are supposed to give out the id of a sprite. (I use charname to know the id of an item from charspr)<br /> From my testing I found out that the problem (the one I want help with) is when I try to call charname[&lt;a letter from sub()&gt;]. Apparently it gives out [nil], but what i thought it would do is something like a block from Scratch:<br /> (item # of (&lt; item&gt;) in [&lt; list&gt;]),<br /> but apparently it doesn't. So I'm asking: <strong>if anyone would know about a workaround or how to do it properly.</strong></p> https://www.lexaloffle.com/bbs/?tid=52541 https://www.lexaloffle.com/bbs/?tid=52541 Sat, 29 Apr 2023 13:25:10 UTC stat(31) doesn't function properly <p>I'm not entirely sure if this is bug or my mistake, but i can't figure it out.<br /> Basicly I have code that should save what I'm typing (it's the last line) to a var named code.<br /> However if i add a function for deletion it doesn't work properly:<br /> I can still type, however i have to hold for few seconds before it registers key presses, which does not apply for the backspace.<br /> I also figured out, that only the first code will work properly, meaning if i swap the if with the var set, only typing works.</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 stat(31)==&quot;\b&quot; then code=sub(code,0,-2) end code=code..stat(31)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p><strong>I'd be really happy to know if it's my mistake or a bug.</strong></p> https://www.lexaloffle.com/bbs/?tid=51341 https://www.lexaloffle.com/bbs/?tid=51341 Tue, 24 Jan 2023 20:11:20 UTC Untitled <p> <table><tr><td> <a href="/bbs/?pid=124712#p"> <img src="/bbs/thumbs/pico8_rndflowergarden-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=124712#p"> Random Flower Graden</a><br><br> by <a href="/bbs/?uid=72842"> 851523</a> <br><br><br> <a href="/bbs/?pid=124712#p"> [Click to Play]</a> </td></tr></table> A thing I made in school</p> https://www.lexaloffle.com/bbs/?tid=51316 https://www.lexaloffle.com/bbs/?tid=51316 Mon, 23 Jan 2023 12:15:25 UTC Jelpi demo level 2 <p> <table><tr><td> <a href="/bbs/?pid=122476#p"> <img src="/bbs/thumbs/pico8_jelpilvl2-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=122476#p"> Jelpi demo level 2</a><br><br> by <a href="/bbs/?uid=72842"> 851523</a> <br><br><br> <a href="/bbs/?pid=122476#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=50673 https://www.lexaloffle.com/bbs/?tid=50673 Thu, 15 Dec 2022 16:07:42 UTC