Log In  


cart A: (broken)

msg="havent pressed test yet"
menuitem(1,"★test",function() msg="pressed test!" end)

::_::
?"\^1\^c" --https://www.lexaloffle.com/dl/docs/pico-8_manual.html#Control_Codes
print(time(),0,0,7)
print(msg)
goto _

cart B: (working)

msg="havent pressed test yet"
menuitem(1,"★test",function() msg="pressed test!" end)

::_::
flip()?"\^c" --this line is the only difference
print(time(),0,0,7)
print(msg)
goto _

These two carts should behave the same, but the menuitem function in cart A never runs -- after opening the menu and selecting the menuitem, it still says "havent pressed test yet"

cart B works as expected -- it says "pressed test!"

My system is linux / pico8 0.2.6b

1



[Please log in to post a comment]