vrld / hump

LÖVE Helper Utilities for Massive Progression
http://hump.readthedocs.org
1.09k stars 154 forks source link

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

Closed alyxeo2k closed 2 years ago

alyxeo2k commented 2 years ago

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'

[C]: in function 'xpcall' heres the error.