I've been following Challacades' Tutorial:https://www.youtube.com/watch?v=dZzAxYrUMRg for my platformer. When I run the game it shows an error message:
Error
main.lua:30: attempt to index field 'Walls' (a nil value)
Traceback
main.lua:30: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
How do I fix this?
Adding Hitboxes
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Adding Hitboxes
- Attachments
-
- main.lua
- (2.44 KiB) Downloaded 74 times
Re: Adding Hitboxes
Without being able to see "Map1.lua", I suspect you just have to change on line 30 to
Code: Select all
gameMap["Walls"]
Code: Select all
gameMap.layers["Walls"]
Re: Adding Hitboxes
gameMap should probably be gameMap.layers on that line.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests