kikito / gamera

A camera system for LÖVE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After zooming in got error in camera:toWorld(x,y)https://github.com/kikito/gamera/pulse

DjSapsan opened this issue · comments

related code:

cam = gamera.new(0,0,1010,1010)
wX,wY = cam:toWorld(x,y)
drawSomething(wX,wY)

After zooming i got error "attempt to index a nil value" because wX and wY doesn't get values. Program working only in original zoom.

Maybe because your x and y is nil?

Sorry, too late. I dot remember, but x and y was always not a nil. I think problem with a scale.
Anyway, nevermind, its too late for discussing

Thanks for opening the issue in the first place, and apologies for not answering on a timely manner.