Page 1 of 1

Adding to the gridlock movement tutorial on the tutorial section of love

Posted: Tue Nov 01, 2022 3:33 pm
by fridays18
After following the tutorial I'm at a loss of how to do much outside of changing table drawing colors and fill/line, I have no clue how to add interaction, enemies, etc and I can't find any gridlocked movement tutorials that use tables to help me out, does anyone know of a good place to learn more about the gridlocked movement? Normal movement I can do collisions and items and etc easy its just I have no clue when it comes to this specifically.

Link to the tutorial mentioned
https://love2d.org/wiki/Tutorial:Gridlocked_Player

Re: Adding to the gridlock movement tutorial on the tutorial section of love

Posted: Thu Nov 03, 2022 12:17 am
by darkfrei
fridays18 wrote: Tue Nov 01, 2022 3:33 pm After following the tutorial I'm at a loss of how to do much outside of changing table drawing colors and fill/line, I have no clue how to add interaction, enemies, etc and I can't find any gridlocked movement tutorials that use tables to help me out, does anyone know of a good place to learn more about the gridlocked movement?
There is a game with tiled world, where both players are bigger than just 1x1 tile and interact with other blocks, that are also bigger than 1x1 tile. Sorry, no smooth movement system.

viewtopic.php?t=92585

Main movement function is just

Code: Select all

if can_move() then do_move() end
So just checking if the movement is possible before this movement :)

Re: Adding to the gridlock movement tutorial on the tutorial section of love

Posted: Thu Nov 03, 2022 12:13 pm
by fridays18
Ty Ill look into it!