Help with reset a int[] and multiple screens

-a- pls format your code
-1- in the processing IDE with [ctrl][t]
-2- in the forum editor using

</> code tag

and paste your code in-between the
```
your code
```

-b- your code should run from the IDE?
is it a question about android?
ok, for test run would need the pictures.
or
if the pictures are not needed for testing what your question is about,
show some code about the problem without need of extra files…

-c-
you ask about your array

int [] hinder;
void setup() {
  hinder = new int[100];
  for (int i=0; i<20; i=i+1)
  {
    hinder[i]=2000;
  }
}

void draw() {
// ...
    hinder[counter]=2000;
// ...
    hinder[i]=hinder[i]-hinderspeed[i];

}

so, where? you want to do what? with that array? pls more details

1 Like