At the moment I am trying to make a sound play once during a collision.
The collision doesn't stop player speed, but rather the player can "run" through the collision box.
This means that the collision function returns true for several frames in the game.
Whilst can get a collision to play a sound, because the function is returning true for several frames the sound bite keeps restarting every frame.
Could someone please explain how I could make it so that
Whilst collision = True
Sfx plays all the way through(only once though)
I am currently trial and erroring my way through this, but I wondered if I could cut that a little shorter by asking a question on here. I did try searching online for tutorials regarding this but they either make a sound effect play when a button is pressed, or something that doesn't necessarily apply to a situation like this.
Thanks.




Hi everyone, i've been working on a pico-8 project to act as a stepping stone to a harder project.
Whilst it's going smoothly, it would be alot easier for my project if I could animate over a table of
sprites rather than the regular spr += 1 thing I see in all the tutorials.
It would allow me to use any sprite i needed from the table without having to organise the table so strictly. Furthermore, because I am using 2x2 sprites I can't as easily loop over sprites using the regular method because just going to the next line of tiles won't really help.
I tried checking some games on splore but I havn't found an answer yet.
Does anyone know a good solution?



Hi everyone,
As exams get closer, for some reason I started getting interested in Pico-8 again (terrible timing), but as a total beginner to programming im not to sure where to start, even when I follow tutorials online I find myself understanding the code (at least how it applies to the rest of the program), but I never manage to really retain the information, sadly looking at source code only gets me so far, understanding a little but not a lot.
There seems to be a huge gap between knowing how to make a breakout clone, and being able to knowing enough tools to make your own game no matter how simple (within the limits of pico 8). That being said, im incredibly glad that there is such an enthusiastic community who is willing to make videos and fanzines that will teach new people how to use pico 8. Another issue is that as soon as I try to deviate from the tutorial I run into issues that I cannot seem to solve, and due to the nature of online teaching it's very difficult to get advice.
As a result I decided that to help me understand how to program I should really get to grips with the syntax. To do this ive set up a long question sheet which looks at the Pico-8 manual, and asks questions on the various parts. Then I use the internet and other resources to find the answers.
I've found it very useful, and I thought I might post it here for other beginners to use, I try to cover as much as possible with the questions, but most are very basic.
If you have any suggestions or amendments, or want to contribute to the more difficult questions, pleasure feel free to edit the list accordingly. I understand that the list doesnt teach you how to actually program and think likea computer, but I hope it goes some way to helping people know what the tools they have at their disposal.
1. What are the three key functions?
2. What do they do?
3. What are the buttons in numbers?
4. What is a function?
5. What is a type and assignment?
6. What is a number?
7. What is a string?
8. What is a Boolean?
9. What is a table?
10. What is an array?
11. What is a string?
12. What is a conditional in code.
a. What is the syntax?
13. What is a loop?
a. What is the syntax?
14. What is a local variable?
15. How is it used in a function?
16. What is indexing in programming?
17. What do they mean by 1-based indexing?
18. What notation can we use for an index that is a string?
19. What are the unary math operators?
a. What are these in code?
20. What is clipping?
a. What is the code for setting clipping in pico 8.
21. What code do I use to get or set the colour of a pixel at x and y.
22. What is the code I use to get or set the colour of a sprite sheet pixel?
a. What is a spritesheet?
23. What code do I use to get or set the value of a sprites flag?
a. What is a sprite flag.
b. What is the value (v) of a sprite flag?
c. What is the initial state of flags 0/7
d. What is the meaning of a sprite flag?
e. What is a bitfield?
24. How would you print a string?
25. How would you set the cursor position and carriage return margin in code?
a. What is a carriage return margin?
26. How would you set the default colour to be used by drawing functions?
a. What is drawing functions?
27. What does cls



