Hi. I’m not great at coding but trying. My students are using app lab. Specifically " Event Driven Programming in app lab". We are at a point where they click a button it would move around the screen and when the screen is clicked it goes to ‘game over’ screen but now when they click the button it registers that the screen was also clicked and goes to game over screen. What am I missing? Or how can I fix it so it works the way we want? Thank you!
Here is a very simple example of what I am talking about.
Since the button is a screen element, clicking on the button also triggers the event of clicking on the screen. To overcome this, you can put an image in the background and put the button on top of the image. Change the onEvent for click on screen to click on the image. I modified your code to make it work using a image. You can find it here.
Ok thanks! That is what I kind of thought but was just making sure I wasn’t missing something else.
Thanks again for your help!
Maybe you can help us with this one?
He has a lot going on.
Basically when you click on any of the strawberries they should move but they instead send you to the red"you lost"screen.
I tried making a blue background to test it and it’s still not working.
I apologize for the horrible naming of all the id’s!
Let me know if you see the problem.
Thank you!
https://studio.code.org/projects/applab/zRAKlc4BNji9DVDqOjupZlzAiRTgAg6r8O0sE9mL4yc
Never mind I think I figured it out!