LOVE2D-trouble with cameras (follow player until end of map)
Posted: Tue Mar 15, 2016 7:00 pm
Hi Love community!
First time posting, still pretty new to LUA and LOVE, but I've been working on some small projects to better expand my understanding of a lot of core concepts (both of LOVE and of game design), one thing I really don't quite get is camera motion, ie having the screen follow the player character.
In my attached project (pretty simplistic and please ignore the bad code structure) I want the screen view to follow the player, but then stop once the edge of the map lines up with the edge of visible screen. I didnt find anything that jumped out as obviously dealing with this in the wiki, so I figured I'd hope over hear and ask.
Any help would be excellent
First time posting, still pretty new to LUA and LOVE, but I've been working on some small projects to better expand my understanding of a lot of core concepts (both of LOVE and of game design), one thing I really don't quite get is camera motion, ie having the screen follow the player character.
In my attached project (pretty simplistic and please ignore the bad code structure) I want the screen view to follow the player, but then stop once the edge of the map lines up with the edge of visible screen. I didnt find anything that jumped out as obviously dealing with this in the wiki, so I figured I'd hope over hear and ask.
Any help would be excellent