After adding the collides() function and running through Replit, it gives this error:
My code is exactly as in the tutorial, although that video may be outdated already because some other things haven’t worked which I’ve had to consult the Kaboom documentation to fix. However on this, I’m using it the same way the docs describes.
You need to specify which object is colliding with and add the area to the object, which is the one that actually provides the collides function. If the tagged object doesn’t have an area it won’t work:
Any game object can have any number of tags, they’re kinda like components but much more light weight. We often use tags to quickly describe behaviors for a group of objects.
Looks like it’s working now. At least to the point I have it so far. It’s a bit frustrating that the tutorial I’m following appears to be out of date, but I’m learning a lot trying to update the code.
I really appreciate your assistance. Thank you.