I can’t seem to find a way to sleep for a second, so is there any way of doing this?
Codea has a different concept from a straight ‘procedural’ approach - the draw() function, for example, runs about 60 times per second. You can achieve a pause by counting the number of seconds that have elapsed in draw(), perhaps by adding DeltaTime to a variable until it reached the pause time you wanted, then trigger your function.