Hello,
I am trying to use a for loop in order for my games's timer to be added to my games score. I want this to happen when my player wins and have the remaining time on their clock added as points to the score counter.
This is what my current loop code looks like and I'm not sure why it is not working because I am relatively new to java.
public void pointloop()
{
for(int i=0; i<timer; i++){
((Background) getWorld()).timertocounter(); }
}
Thanks for any help guys!