Index out of range when it seems like it shouldn't be?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By VerySoft

I’ve been learning by following a tutorial, the tutorial was out of date, so I couldn’t follow it exactly and had to do a bunch of learning on my own to follow along, and afterwards I noticed that, while the code does run, it creates a lot of errors, so I wanted to try to understand what’s gone wrong.

As I understand it, it is telling me that ‘index’ is out of bounds of collision.get_collider() but I am not sure why, or how to correct this.

:bust_in_silhouette: Reply From: Maximm

I don’t exactly understand the code fully, but from what I’ve gathered it looks like the error is just telling you that it’s setting the parameter of the get_collider() function to be 1. It might just be autocorrecting the code.