So I am making a White Blood Cell game. My objective of this forum is to remove 1 score when the virus touches the Blood cell. But when ever it touches the virus, it subtracts it for every millisecond its touching the virus.
Can anyone help me with this?
1 2 3 4 5 6 7 8 9 10 | public void addScore() { if (isTouching(WhiteCell. class )) { Bloodstream bloodstream = (Bloodstream)getWorld(); bloodstream.addScore(- 1 ); } } |