Skip to content

2D movement - Vectors to Cartesian and display speed #1467

Answered by 191brian
raphael-clancy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

In order to slow down the process I use a timer/counter and the modulo operator in an if statement checking for remainder of 0 i.e
timer = 0
function TIC()

timer = timer + 1

if timer%20 == 0 then
	cls()
	drawLetters()
	moveLetters()
end

end

Brian ...

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@raphael-clancy
Comment options

Answer selected by raphael-clancy
Comment options

You must be logged in to vote
1 reply
@raphael-clancy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants