So I'm fairly new to PICO-8, and while I have a basic (very lightly said, lol) understanding of making a game on the program, I'm having difficulties finding any guides or tutorials about how to use time properly - particularly with making an intro sequence for a game.
Example: After the game starts up, I want to have the music start after 1 second (along with my logo) into the game, but from the methods I've tried, it results in the first note of the track playing in a continuous loop.
if (time()-last)>1 then music(0) spr(192,48,48,4,4) end |
I know the problem is that it repeats the desired action with every value past 1, but I don't know how to only have this happen once.
If there's anyone that knows of any guides/tutorials or has some tips or solutions to this, it would be greatly appreciated.
Thank you!