About the problem|| What I'm trying to do right now is just get player to spawn in on the randomized grass-tile map. The grass tile map is fine, it appears as it should. The problem comes when I try to render the player. More will be added later, but this is my goal for now, so the generateAnimals function (that has the same problem) can be ignored. I've tried for about a week+ trying to understand what I did wrong, or what the code thinks is happening. I would love an answer, but also an explanation. I do really want to understand lua!
Right now, this is what the error looks like [ apologies for the size ]
![Image](https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/80c75c87-5c91-46f0-a95f-127d3bee4fa1/denwvof-275d7e07-712f-442c-9196-c3d018ef8152.png/v1/fill/w_1010,h_791,q_70,strp/xx_by_chimericect_denwvof-pre.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9OTQ0IiwicGF0aCI6IlwvZlwvODBjNzVjODctNWM5MS00NmYwLWE5NWYtMTI3ZDNiZWU0ZmExXC9kZW53dm9mLTI3NWQ3ZTA3LTcxMmYtNDQyYy05MTk2LWMzZDAxOGVmODE1Mi5wbmciLCJ3aWR0aCI6Ijw9MTIwNSJ9XV0sImF1ZCI6WyJ1cm46c2VydmljZTppbWFnZS5vcGVyYXRpb25zIl19.eCRHATz48PE4NN4hAoMh4q8UiMjTHav4TWAzTKWQv5k)
Github: https://github.com/Chimericect/KOK_Game