Log In  
:: Unfold ::

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 

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!

P#124951 2023-01-28 15:50 ( Edited 2023-01-28 16:16)

Follow Lexaloffle:          
Generated 2023-06-05 06:18:04 | 0.063s | Q:5