I think it would be neat to have scripts, ones that have a prefix maybe (like "hkblah" with "hk" being the prefix) could be loaded into Pico-8 and launched with a hotkey.
So in the script in the comments you could do
And when Pico-8 detects you press CTRL and S it would run the script.
You could use this to make cheat sheets, have a launcher and go back to it, launch splore, launch a tool to import music and such.
What do you think?
Hello! I love Pico-8, however I've been trying to find out how to do collision. I've done tons of stuff, however the closest I get does the job for some games. However it can't slide.
Let's say you could move the player in 8 directions top down, and there's a wall on your right. If I hold right, I will run into the wall, however due to the way my code works (and I've tried different ways) if you hold up and right, instead of just going up it just makes you stay there. Meaning it's hard to get into 1 tile gaps in walls.
I've also noticed platformers are hard to do as well, as my code checks each corner, I have no way to check what direction a wall is, meaning if you're jumping while running into a wall, when you get to the top and only one corner is touching the wall, it makes you stick.
So is there any good collision systems that is easy to understand, and allows sliding? Thanks. :)