Aw man, I'm so sorry, I feel really silly... How on earth do you generate a random bool? I can't find any way to cast an int into a bool, so I'm down to doing the sort of stuff below:
randbool=flr(rnd(2)) if randbool==0 then randbool=false else randbool=true end |
This feels really dirty and silly. What's the established way of doing this please? And apologies in advance.
Thanks,
Pedro.

ive loved pico 8 the whole year, but now that schools over, i dont feel like playing as often. ill come in time to time, but i will probably not be playing at all anymore. i will never forget all of the amazing games created by all of you, but im afraid its my time to go. love you all, Jaeson Pickens.

so I tried to use my Playstation 5 controller with my PICO-8 software, it is running on windows and I added the sdl2 map. Here is the map:
030000004c050000e60c000000000000,PS5 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,touchpad:b13,x:b0,y:b3,platform:Windows,
it should be correct yet when I try to use my Playstation 5 controller it isn't working, no buttons do anything. I read the wiki on how to set it up and I think I'm doing everything right. what are common mistakes or causes that this doesn't work.
SPRITE 00 - SAND
SPRITE 01 - LEMON
SPRITE 02 - All colors
SPRITE 16 - WHITE
SPRITE 17 - STORM
SPRITE 18 - Top is LIME, bottom is MOSS
Modify your palette matching the image. I used Painto8 Lite bbs cart to generate this line of code.
pal(split("7,2,3,4,5,6,1,8,9,10,11,135,13,14,15,0"),1)
Put the code in and run it once.
pal(split("7,2,3,4,5,6,1,8,9,10,11,135,13,14,15,0"),1)
poke(0x5f2e,1) --editor mode
function _draw()
cls()
print("its running",0,100,1)
spr(0,0,0,3,2)
end |
Now do the IMPORT and run again.
Whats happening: When your custom palette being drawn in editor mode, ONLY THEN you are good to import the sprites. After that, you can remove the poke.
all the steps in 8 seconds or less
links






9 comments


