Set the position of tilemap in ATL?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
herksaw
Prole
Posts: 3
Joined: Fri Jul 18, 2014 11:39 am

Set the position of tilemap in ATL?

Post by herksaw »

How do I set the position of a tile map in ATL, such as moving it to the center of the screen. Or is there a way doing this using

Code: Select all

love.graphics.translate
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: Set the position of tilemap in ATL?

Post by MadByte »

I've never used ATL but there have to be a x/y variable in the map table I guess, maybe someting like "map["foreground"].x" or directly "map.x".
If not you could draw your map to a canvas and use the x and y parameters to set it's position.

Hope that helps somehow :D
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot], Semrush [Bot] and 3 guests