filmov
tv
Automatically schedule anything with frameCount and p5

Показать описание
This video goes over how to automacially spawn a sprite every second using the following techniques:
modular coding
conditionals
for loops
frameRate() and frameCount
The idea is that you can count the difference between a value and the frameCount, then execute a function based on that value difference. In this video I am specifically spawning sprites every second, but this process can be used to have anything happen every x seconds with very minor twists.
There are other methods of achieving this that may be a little more consistent, but involve more coding. If you would like to see those in a future video, post so in the comments.
modular coding
conditionals
for loops
frameRate() and frameCount
The idea is that you can count the difference between a value and the frameCount, then execute a function based on that value difference. In this video I am specifically spawning sprites every second, but this process can be used to have anything happen every x seconds with very minor twists.
There are other methods of achieving this that may be a little more consistent, but involve more coding. If you would like to see those in a future video, post so in the comments.