Skip to content

How do I do a wait() function? #1864

Answered by nesbox
aadenboy asked this question in Q&A
Mar 22, 2022 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

There is no wait function, but you can do something like this

local t=0
function TIC()
    cls(12)
    t=t+1
    
    -- wait 2 seconds
    if t<2*60 then return end
    
    print("HELLO WORLD!",84,64)
end

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@aadenboy
Comment options

@joshgoebel
Comment options

@aadenboy
Comment options

@farvardin
Comment options

@franalbani
Comment options

Answer selected by aadenboy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@atesin
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants