[When my frog touches my fly the program seems to break. The animations ‘bleed’ and the y location stop points stop working. As long as my frog does not touch my fly, frog jumps and responds normally. Ugh! Please help - suggestions.]
Link to the project or level: [https://studio.code.org/projects/gamelab/pa5aVNmnizfUlHaEpS1VfvK3ee88HpLZ9gJDYOuBf7M] What I expect to happen: [Frog to hop up with the space bar and fall down once he reaches 100y and stops at 350y. I expect frog to touch fly and points are awarded and fly reset location.] What actually happens: [Frog jumps with the space bar and stops at 100y and 350y as long as it does not touch the fly. When frog touches the fly, frog controls are lost, and fly and frog animation ‘bleed’.]
Yes - that confirms my other post “I think it is my math.”
How do I write if score is between 0 and 5? I have tried
if score<1 && score<6 but that gives me the same error.
We are trying to combine our three games into 1.
Also, do you think I should use separate if scores, or the if else? I had separate, but this morning I thought maybe it made more sense to say if this then that OR else not that but this.
Thank you for any help you can give me. We are hopefully going to attempt this on Tuesday .
Melodi