Page 1 of 1

Camera follow for character, HELP!

Posted: Thu Jan 22, 2015 5:54 am
by RaptrStudios
I want to add a camera follow to the character because i would like to have a bigger map, here is the code,
Adventure.zip
(5.05 MiB) Downloaded 161 times
If you need more info, just ask
also my website is http://raptrstudios.weebly.com

Re: Camera follow for character, HELP!

Posted: Thu Jan 22, 2015 10:23 am
by nfey
What did you try to do and what problems did you run into when doing it?
It's easy in principle, just change the camera's position to the player's position in each love.update() call.

Re: Camera follow for character, HELP!

Posted: Thu Jan 22, 2015 12:20 pm
by kikito
You could use my library, gamera: viewtopic.php?f=5&t=12033

Re: Camera follow for character, HELP!

Posted: Thu Jan 22, 2015 6:39 pm
by RaptrStudios
I have been having problems with camera positioning, it would teleport off the screen and i dont know why.
And is there any videos on it?
Ill also give that library Gamera a try
Thanks

Re: Camera follow for character, HELP!

Posted: Thu Jan 22, 2015 9:47 pm
by rmcode
These helped me a lot:
https://love2d.org/wiki/Tutorial:Cameras


Btw. you should also consider updating to a newer LOVE version.