Hey! I'm trying to make a mini-game where a lizard has to sit on a road to gain heat and if he reaches a certain heat the game ends but I can't figure out how to Display the Heat/score, I read the notes in the displaying values tutorial but I'm having trouble understanding the concept. Can someone please help me?
This is what code I have;
private int Temp = 0; void Temperature() { if (isTouching(Road.class)) { Temp = Temp+1; } }