im making a city builder, there is not a 'player' with a camera, the camera is a scene with functions
ive tried all day set the camera2d limits position, search in the forums, looking for solutions, different ways, but nothing works for me when zooming the camera or moving past the limits
some like this does not work
if position > limit_left:
position = limit_left
it just keep moving for some reason past the limit
I even tried adding several types of bodys and collisions to it, but it does not matter, with the zoom nothing works :( i didnt found precise info on the net either Has anyone already been on this train? I mean camera vs position vs zoom??
so, since I have no patience for these things and I don't want to waste time with such a simple thing (imo), I have added 4 visibility notifiers on each side of the stage as borders. When one of them 'is visible' on the screen, it blocks the _input to that side and the camera doesn't move that way either, therefore it does not go beyond that border, no matter the zoom
It seems that it works perfectly.... but what do you think?