My student would like the screen to change when the monkey touches the tree. Could someone please advise? Thanks in advance for any help!https://studio.code.org/projects/applab/ump7w2ngJPx6_evmWrRt-HNKVARlBfl2Zf3hRBdDVyQ
App Lab isn’t natively designed to implement collision detection. I have seen it done, but it’s not a simple block or single command like in Game Lab where that kind of function is native.
Here’s a post with more information on that.
Mike
Hello @jcostanza!
To add to @mwood’s response - In AppLab, there is not an “isTouching” block like there is in GameLab. However, you can build a similar effect by setting the x and y position of the monkey to variables and the x and y position of the tree to variables. Then, when both x and y positions are within, say, 5 or 10 pixels of each other, something happens.
Let us know if you need more info to accomplish this:)
~Michelle
Thanks @melynn is correct to point that out. @jcostanza Here’s a link to another discussion with some examples of implementing the collision detection that I should have included in my original response. It CAN be done. it’s just a little more simple in Game Lab.