Hello all ! I'm a beginner, will post some newbies question sorry for this.
I can't find any wait function in the help file ? Do i need to program a counter or something like this ?



If you want to pass a frame without doing anything or losing your place, you can use flip(). This is useful for full screen wipe effects that freeze up everything else, like making fade in/out sequences, or other things that can interrupt everything else you're doing.
Otherwise, you should probably use a counter to iterate over multiple _update / _draw function calls, yes.
Here's a handy little shortcut I use sometimes:
function wait(a) for i = 1,a do flip() end end |



Have a look at this thread:
https://www.lexaloffle.com/bbs/?tid=30447
This is one of key aspect of game development and pico does not provide entry level helpers
Note: coroutine are in pico-ninja realm ;)
[Please log in to post a comment]