Hazi [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=58282 Drowsy Paul <p> <table><tr><td> <a href="/bbs/?pid=100259#p"> <img src="/bbs/thumbs/pico8_drowsypaul-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=100259#p"> Drowsy Paul</a><br><br> by <a href="/bbs/?uid=58282"> Hazi</a> <br><br><br> <a href="/bbs/?pid=100259#p"> [Click to Play]</a> </td></tr></table> <br /> This is my very first pico 8 game.<br /> It's very rough and I just wanted to see how it would go.</p> <p>Paul is sleepy. You are paul. Get to bed and don't fall asleep on the floor.</p> <p>The aim of this game is to get to your bed by dodging crazy obstacles!<br /> But be careful!<br /> You have twenty seconds before Paul falls asleep on the floor... collect coffee to prevent this from occurring!<br /> Paul encounters invisible walls, blood-stained spikes, locked doors, bounce pads, and magical portals!</p> <p>Will you help Paul get to bed?</p> https://www.lexaloffle.com/bbs/?tid=45384 https://www.lexaloffle.com/bbs/?tid=45384 Wed, 17 Nov 2021 08:53:27 UTC wait until function? <p>Hi so I'm quite new to pico-8 so I'm sorry if this is a silly question to ask, but I was wondering if there was a way to wait until something happens. Like the scratch block wait-until. I don't want this to be in an _update() loop as I only want it to happen once, but I also don't want to create too many variables.<br /> My idea was that you were asked a question. You choose and it comes up with a different dialogue depending on your answer.<br /> In the end I want something like this:</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 btnp(4) then &lt;----(in an update loop) if qna==false then nexttext() return else nexttext() a=hovertxt qna=false return end end if qna==true then &lt;----- also in update loop if btnp(2) or btn(3) then hovertxt+=1 end if hovertxt&gt;1 then hovertxt==0 end end textdisplay(&quot;Hi so, do you think,&quot;,function()&lt;----just a custom function that tells the code to run whatever is inside after the dialogue finished. qna=true a=2 &lt;------ in an init loop end) textdisplay(&quot;Yes Or No&quot;) wait until a==1 or 0 if a==1 textdisplay(&quot;you said no!&quot;) else textdisplay(&quot;you said yes!&quot;) 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>if you can help me solve this, it would be very appreciated!</p> https://www.lexaloffle.com/bbs/?tid=44791 https://www.lexaloffle.com/bbs/?tid=44791 Tue, 28 Sep 2021 05:20:10 UTC