[HELP] Gamera Won't Center Camera on Player
Posted: Tue Sep 19, 2017 11:56 am
Hello everyone! I jumped into LOVE about 2 weeks ago and have been making really good progress. I got lighting, states, sprite animations, a resolution handler, and GUI buttons. A lot quicker progress than when I was jumping around in Python.
However I'd like a camera that can zoom and pan, so Gamera looked perfect. However I can't make it work for the life of me. I can get the camera window to appear but not pan with character movement. It seems like the setPosition() function isn't working.
I'm relatively horrible at math and am quickly learning tons of new game concepts, so it is entirely possible I'm just coding wrong. But after two days of grinding and paring down my code, I still got nothing.
If someone could please take a look at my code, I'd really appreciate it. If it's something obvious that has to do with creating the world, or setting up the window or camera, please explain it like I'm 5.
Thank you!
However I'd like a camera that can zoom and pan, so Gamera looked perfect. However I can't make it work for the life of me. I can get the camera window to appear but not pan with character movement. It seems like the setPosition() function isn't working.
I'm relatively horrible at math and am quickly learning tons of new game concepts, so it is entirely possible I'm just coding wrong. But after two days of grinding and paring down my code, I still got nothing.
If someone could please take a look at my code, I'd really appreciate it. If it's something obvious that has to do with creating the world, or setting up the window or camera, please explain it like I'm 5.
Thank you!