Page 1 of 1
Gridlock Movement Tutorial Advancement
Posted: Thu Nov 27, 2014 10:23 am
by connordelaneyy
Hi all, sorry if my post is somewhat incorrect and such as I am new to these forums. I was following the tutorial here:
https://www.love2d.org/wiki/Tutorial:Gridlocked_Player, it is great however at the bottom it states the map can be added at 0, 0 rather than 32, 32. If you can help me make the map start at 0, 0 rather than 32, 32 it would be much appreciated
Re: Gridlock Movement Tutorial Advancement
Posted: Thu Nov 27, 2014 12:20 pm
by bobbyjones
Try switching
Code: Select all
love.graphics.rectangle( 'line' , x*32 , y*32 , 32 , 32 )
With
Code: Select all
love.graphics. rectangle( 'line' , (x-1)*32 , (y-1)*32 , 32 , 32 )
Re: Gridlock Movement Tutorial Advancement
Posted: Thu Nov 27, 2014 12:27 pm
by bobbyjones
Then do the same in the test map function
Code: Select all
map[((player.grid_y/32)-1)+y][((player.grid_x/32)-1)+1]