Hi, I’m struggling to figure out how you can set the speed/power of a moving object based on time. For example, When you press a key, a ball is thrown from one end to the other. the time taken to press the key is calculated and the amount of force applied on the ball depends on the time; e,g pressing the key after 2 seconds moves the ball slightly, pressing the key after 10 seconds makes the ball bounce much faster.
How could this be achieved? Should the time be measured with frameCount, or set the time as a variable counting by millis? I want to set the max amount of seconds at a set amount, so I’m wondering if the 2nd option would be more viable.