For this part, “set true upon…” , do i write that in variables too? I don’t know how to do this part.
Instead of reset here we agreed to say
gameOverScreen=true;
The reset is called in keyPressed then. Here you say
gameOverScreen=false; obviously
and pedY = height-25; etc.
Does it work now?
Chrisir
no, I am having trouble with that still. I am not sure as to what you mean by that.
Then show your entire draw
I’m kinda getting a deja-vu moment here. I’ve a simular question also with a game that involves a player dodging cars and the question being on how to implement a scoring system with a hard cap…
The issue in this post was the saved coordinates of the pedestrian not matching up with the sprites coordinates. It was this thread: