apirux [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=45616 Intended print() behavior? <p>After searching and testing for a solid hour, I still can't seem to figure this out. If anyone can clarify or point me to the correct docs, that would be great. Thanks in advance.</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>print(1) --1 print('hi',10,10) --hi ...at position (10,10) print(1,10,10) --0x0001.0000 ...at position (0,0) &lt;-- why?</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Is that third scenario supposed to print in hex?</p> <p>On the Wiki's <a href="https://pico-8.fandom.com/wiki/Print">print()</a> page, this supposedly works as expected:</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>-- print the player x position just inside the upper left corner, in red print(player.x,2,2,8)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>So is this a bug, or am I missing something?</p> https://www.lexaloffle.com/bbs/?tid=38981 https://www.lexaloffle.com/bbs/?tid=38981 Sun, 26 Jul 2020 02:11:05 UTC