Created
March 28, 2022 00:10
-
-
Save animanoir/fb4c3193b8bea92d57f9461ef96c0bcf to your computer and use it in GitHub Desktop.
Contador de segundos para que pase algo cada x segundo en Processing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int elapsed = millis() - lastTime; | |
if (elapsed >= 5000){ | |
image(goodCandy[rand], randX, goodY, randCandyW, randCandyH); | |
goodY = goodY + (candySpeed * yDirCandy); | |
lastTime = millis(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment