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

edited May 2016 in Library Questions

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!

Tagged:
Sign In or Register to comment.