Hello, as I was finalizing our game, I ran into an error where it said " Uncaught TypeError: Cannot read properties of undefined (reading ‘on’)".
Attached below this paragraph is my character next to an object that they should have collided with, yet the collision or like the interaction between the character and the object never happened.
Here is a screenshot of what the error looked like upon launching.
I read and tried to troubleshoot with the help of peers and it seems that an issue could be that the script isn’t attached to the entity, yet, when I checked again, it is applied. In fact all entities that trigger the event have collisions attached to them so I am unsure anymore on what to do.
I am actually bit afraid to readjust the script because this is the only running issue left on the game and I don’t have enough time to troubleshoot it. If it could help further explain my issues, I will be linking the game below. Thank you in advance.