Page 1 of 1

setDrawRange not working as expected

Posted: Wed Nov 12, 2014 11:52 am
by bcvery1
I'm new to LOVE2d and I'm trying to make a player icon move across a simple map. I've been following the tutorials on the wiki, and the API and I've run into a problem with drawing a range of the map. If I do not use map:setDrawRange... the whole map displays fine; however with that line in the map cuts off early (see attached images).

The map is a .lua file, made with tiled 0.10.2; it has one tiled layer. I'm running LOVE version 0.9.1 (Baby Inspector).

I have attached the .love file also.


Many thanks,
BC

Re: setDrawRange not working as expected

Posted: Wed Nov 12, 2014 4:07 pm
by rmcode
You could ask for help in the STI thread since it seems to be an issue with the library.

Re: setDrawRange not working as expected

Posted: Thu Nov 13, 2014 11:50 am
by bcvery1
Thanks rmcode, I did that and got an answer. The solution was to use the same translation in setDrawRange as with love.graphics.translate

Which seems obvious now I see it!