One of my students is trying to hover over a finish button in his app with a turtle. He would like it to change screens when the turtle hovers over this button. We are unable to find any code, that had been learned, that would allow this to occur. Any suggestions?
I know one of the events is if you have the mouse hover over the element, but as far as I know, there’s no event for when the turtle is in the same position as an element.
Basically you’re looking to do “collision detection”, something not built into App Lab. There’s been a few posts about it in the past. Looks like there might be a way that requires a bit more coding:
I am sorry for typing this very late, I have just made a Code.org forums account using my personal account, this is my first post on these forums.
Talking about how you want to detect if a turtle is over a button, the only way I did that was here: App Lab - Code.org
This is a way I detected the turtle going over something, you can list your button x and y values and remove the text label as I used that to see where the turtle has to be to get detected! you can add a trigger to the code to change screen when the turtle gets detected!
Happy to help if you see this command But you probably won’t cause it was made in 2025…