Hello everyone,
I am getting a strange error with the game I am working on. I am trying to get shooting and collisions to work currently, and I’m also having trouble with the listeners. I’ve attached my code in a .txt.
The error I’m getting occurs in my shoot function, and reads:
"attempt to index upvalue ‘player’ (a nil value)
In the shoot function, line 205 is as follows:
bullet.x = player.x
Any help would be appreciated. Let me know if any more information is needed.