kikito / gamera

A camera system for LÖVE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] clamp in adjustPosition lead camera con't change it position !

endlesstravel opened this issue · comments

commented

I just use below code in my game:
cam = gamera.new(0,0, 800,600) cam:setPosition(100, 100)

but I debug it found in "gamera:draw" in line 181 which 'self.x self.y' always 300 and 400.
it made me crazy untill I delete line 62 in local function "clamp" 🎅 , then, everything is ok

However, It isn't a long - term policy.

commented

I am figure out what happend.
I am stupid 😂 to use small size map on gamera system which lead gamera can't move it position
😂 Sorry to open a issue

Don't beat yourself, you are not stupid, and you are not the first person finding that "problem". You have helped me realize that I should improve the docs so that the params are explained better. Thanks!