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

issue with the camera attach function with the love.graphics.translate -self.x -self.y #7

Open
alyxeo2k opened this issue Jun 12, 2022 · 1 comment

Comments

@alyxeo2k
Copy link

im new to using this library and i keep getting this error that in the attach() it love.graphics.translate(-self.x,-self.y) and it says that x is a nil value. how can i fix this? pls help
Error

hump/camera.lua:119: attempt to perform arithmetic on field 'x' (a nil value)

Traceback

[love "callbacks.lua"]:228: in function 'handler'
hump/camera.lua:119: in function 'attach'
main.lua:132: in function 'draw'
[love "callbacks.lua"]:168: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
heres the error.

@HDictus
Copy link
Owner

HDictus commented Jun 23, 2022

You'll need to provide a sample of code that produces the error, since this clearly doesn't happen every time someone uses camera:attach().

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