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

play sound when mouse pressed and paused when released

$
0
0

Hey guys, I'm trying to code a guitar hero like game for my school project. My goal is to have a guitar with different colors on the neck and depending on which color I press with the mouse a different note play. I'm not sure how to use a sound based on the X,Y position of the mouse and then have the sound play when the mouse is pressed and stop playing when the mouse is released. Any help would be appreciated!

Thanks


Viewing all articles
Browse latest Browse all 2896

Trending Articles