Hi,
I have a scenario where once I have collided with an object it resets it to a different position. I would like to refine this so it needs to be hit a certain amount of times before it is relocated
Just add an instance field to track the number of hits taken. When it reaches that certain value, then relocate.
Steps:
* add instance int field 'private int hitsTaken;'
* when hit
- add one to 'hitsTaken
- check hitsTaken for value to relocate
? if at value
- reset 'hitsTaken' to zero
- relocate