Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Processing long time performance

$
0
0
eye[0] = new Movie(this, "eye0.mov");
Do you know you can use a loop to do this initialization?
eye[i] = new Movie(this, "eye" + i + ".mov");

float eye0t = eye[0].time();
You could have used an array here too, thus an loop to avoid all these copy & paste!

eye[0].jump(2);
Same remark, use a loop!

      if ((eye20t>2.54)&&(hak)) {
    eye[20].jump(0);
      }

Idem...

Sorry if it doesn't answer your question, but by tidying up your code, it will be easier to debug, and perhaps to examine for the other users.

Viewing all articles
Browse latest Browse all 1768

Trending Articles