davmac wrote...
Heet_Patel wrote...
boolean touchingShark_2 = false;
... after that write
Yes.
int counter = 0;
or do I this code in the act method?
No. If you did, it would be a local variable and would not retain its value between act cycles.