This is my very first pico 8 game.
It's very rough and I just wanted to see how it would go.
Paul is sleepy. You are paul. Get to bed and don't fall asleep on the floor.
The aim of this game is to get to your bed by dodging crazy obstacles!
But be careful!
You have twenty seconds before Paul falls asleep on the floor... collect coffee to prevent this from occurring!
Paul encounters invisible walls, blood-stained spikes, locked doors, bounce pads, and magical portals!
Will you help Paul get to bed?
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.
My idea was that you were asked a question. You choose and it comes up with a different dialogue depending on your answer.
In the end I want something like this:
if btnp(4) then <----(in an update loop) if qna==false then nexttext() return else nexttext() a=hovertxt qna=false return end end if qna==true then <----- also in update loop if btnp(2) or btn(3) then hovertxt+=1 end if hovertxt>1 then hovertxt==0 end end textdisplay("Hi so, do you think,",function()<----just a custom function that tells the code to run whatever is inside after the dialogue finished. qna=true a=2 <------ in an init loop end) textdisplay("Yes Or No") wait until a==1 or 0 if a==1 textdisplay("you said no!") else textdisplay("you said yes!") end |
if you can help me solve this, it would be very appreciated!