Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How can I make a video's playing contingent on keyPressed?

$
0
0

Hello everyone, I'm a super newbie to processing, so I apologize in advance for any communication blips we might have. I'll try to explain what I'm trying to do as clearly as possible.

I want to make it so that the frame rate of the movie is determined by the user pressing the spacebar. So, essentially, one has to press the spacebar rapidly and without stopping in order to make the movie "go".

Is this possible, maybe with a combination of keyPressed, frameRate, maybe an if/else?

Thank you!


Viewing all articles
Browse latest Browse all 2896

Trending Articles