Unit 3 lesson 26 #16

Can someone help me with this code?

It keeps giving me a error code on line 125 that player.collide is not a function?

thank you

What code are you talking about? I could help you but I need to see the code before trying to see what’s wrong.

If you could click on the “Share” button in the upper left corner of your screen, you can post the link to your code. This way we can help you debug your code more easily.

@timothy_lau

In line 117, you accidentally redefine player as a number … so it no longer officially exists as a sprite anymore so the collision function doesn’t know what to do.

Tiny typoe!

Mike

ugh!!! so my cursing and tantrum was not the computers fault?

1 Like