# Unit 3 lesson 20 Sprite overlap error

**URL:** <https://forum.code.org/t/unit-3-lesson-20-sprite-overlap-error/33999>\
**Category:** Coding and Debugging Help\
**Created:** [January 7, 2021, 5:04pm UTC](https://forum.code.org/t/unit-3-lesson-20-sprite-overlap-error/33999 "2021-01-07T17:04:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heath.kelley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/heath.kelley/32/5982_2.png) [@heath.kelley](https://forum.code.org/u/heath.kelley)\
**Post date:** [January 7, 2021, 5:04pm UTC](https://forum.code.org/t/unit-3-lesson-20-sprite-overlap-error/33999/1 "2021-01-07T17:04:19Z")

</div>

Hello,  
The student I am working with is getting an error that says “ERROR: Line: 44: Error: overlap can only be checked between sprites or groups”. I’m not sure how to fix this.

Here is a link to his code: [[Code.org - Game Lab](https://studio.code.org/projects/gamelab/igsFVMxtXp8YIZRwj9iGSXTOldaX9s7WSSbT7fLVCtw)]

Thank you for any help with this.

---

<div class="post-metadata">

**Author:** ![melynn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/melynn/32/4925_2.png) [@melynn](https://forum.code.org/u/melynn)\
**Post date:** [January 8, 2021, 2:39pm UTC](https://forum.code.org/t/unit-3-lesson-20-sprite-overlap-error/33999/2 "2021-01-08T14:39:42Z")

</div>

Hi @heath.kelley!

I believe the error is in the looping below. [This post explains what an overlap error is](https://forum.code.org/t/error-line-23-error-error-overlap-can-only-be-checked-between-sprites-or-groups-help/22400/2). I believe the program is not able to check the position of the rockice because of line 63. “rockice=500” doesn’t specify which property of rockice should be manipulated. My guess is that the student meant to move rockice.x? When I changed line 63 to move rockice.x off the screen to the right, it worked. You might also check line 59 as well and make sure that points to a specific property.

Good luck!  
Michelle

---

<div class="post-metadata">

**Author:** ![heath.kelley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/heath.kelley/32/5982_2.png) [@heath.kelley](https://forum.code.org/u/heath.kelley)\
**Post date:** [January 8, 2021, 3:01pm UTC](https://forum.code.org/t/unit-3-lesson-20-sprite-overlap-error/33999/3 "2021-01-08T15:01:42Z")

</div>

Yes, he meant to use rockice.x. I didn’t see that error. Thank you for your help!
