Debugging Problem


I have a student who created this code. When his program is running, the sprite is supposed to stay within the screen. It works on all sides except the left side. The sprite just keeps going. Can anyone see the problem with his code?
Thanks in advance for any help!50%20PM 04%20PM 32%20PM



Thanks for sharing, but it’s better if you are able to share the project. Once the project is shared (might have to share a remixed version) and people are able to play around with it and debug it, we’ll find a solution. Now we’d have to recreate the entire project in which there could be other bugs. Looking forward to seeing the project and finding the solution together!



Ok. I will have him share it. Thanks!