The square will bounce off any rectangle (sprite or backdrop), as long as the horizontal edges and vertical edges of the rectangle are two different colors. No variables used, very little script. Enjoy!