Loading...
Logo
Processing Forum
jrc03c's Profile
2 Posts
1 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    I'm having an unusual problem with Minim: when I run my program from within Processing, the sound works just fine. When I build for Linux and then run, the program works fine, but the sound is really choppy. I've imported all my sounds with a 2048 buffer size. Any recommendations? Thanks!
    Under normal circumstances, the ESCAPE key exits the currently running Processing program. I'm making a game, and I want to use the ESCAPE key to allow a player to leave the game and transition into a menu. How can I get Processing to ignore the normal exit function for the ESCAPE key and instead allow me to do other things with it?

    For example:

    1. void setup(){};
    2. void draw(){};

    3. void keyPressed(){
    4.       if (keyCode == 27){
    5.             // leave game
    6.             // transition to menu
    7.       };
    8. };