We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So to just get to the point, im wanting to make a thing that adds a "point" when every second passes. Then with another point counter that adds a "point" every 5 seconds. Im not sure how to do this so if you could give an example that would be great!
Answers
you could just use
the frameCount/frameRate gets the number of seconds (int so it's not a decimal) your addPoint() function might look like an array that you add coordinates to and draw them all the time (if not then they will only be drawn on every 5th or whatever second, then disappear the second after)
So i ran this into my code
but when it does not add 100 every second. and then it runs 60 times a second so when it does run it gets 1600 points. Im not sure if this is a good explanation.
And also what is the % used for? How does it make the thing work?
https://processing.org/reference/modulo.html
You might also consider adding a point every time millis()'s value has increase by 5000:
https://Forum.Processing.org/two/discussion/23846/time-delay-in-python-mode#Item_11