Edge Collision crashing the App

Hi, can someone help me solve a problem with the app crashing when a ball collides with the edge of the screen?
Captura de ecrã 2024-01-08 200314
This is the code where i believe may be causing issue but idk

I tested your blocks with the Companion app and my phone and there was no error. I don't see anything wrong with them.You may not need the decimal Math block. It worked without it for me.

Try blocks like this:

image

1 Like