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 perform arithmatic on self.x and self.y doesnt work #129

Closed
alyxeo2k opened this issue Jun 12, 2022 · 0 comments
Closed

attempt to perform arithmatic on self.x and self.y doesnt work #129

alyxeo2k opened this issue Jun 12, 2022 · 0 comments

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.

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

1 participant