Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to index local 'layer' (a nil value) #131

Open
MexaFoxesStudios opened this issue May 24, 2023 · 1 comment
Open

attempt to index local 'layer' (a nil value) #131

MexaFoxesStudios opened this issue May 24, 2023 · 1 comment

Comments

@MexaFoxesStudios
Copy link

Error
This sti worked very well until I added attach and detach to the code, to be able to declare the layers for a tiled map

libreries/sti/init.lua:926: attempt to index local 'layer' (a nil value)

Traceback

[love "callbacks.lua"]:228: in function 'handler'
libreries/sti/init.lua:926: in function 'drawLayer'
main.lua:75: in function 'draw'
[love "callbacks.lua"]:168: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'

@nirokay
Copy link

nirokay commented May 24, 2023

do you have a code example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants