Processing sketch works fine on Java but not in Javascript

edited October 2013 in JavaScript Mode

Hello guys, I'm learning processing and I'm facing a very frustrating problem. I wrote a simple word search puzzle with 3 words sheets and a couple of words. I don't understand why it doesn't work in javascript mode. In java mode seems to work fine.. If you could just give a look, any help would be very appreciated. Sketch Thanks a lot Francesco

Answers

  • Your timer function uses the Java object Integer which is not supported in ProcessingJS. Instead of using Integer.toString(n) use str(n).

  • edited October 2013

    Actually, JS won't care whether a variable is int or Integer. However, we can't use Integer's methods! :-SS
    Unless PJS developers decide to implement them in JavaScript mode some day! :bz

  • Billautomata, you are the man! thanks a lot!!!

Sign In or Register to comment.