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
setDrawRange not working as expected
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
setDrawRange not working as expected
- Attachments
-
- map2.love
- (23.95 KiB) Downloaded 135 times
Re: setDrawRange not working as expected
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!
Which seems obvious now I see it!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests