Closed BrianErikson closed 8 years ago
Yes! This is weird, but if you turn it on fps goes wayyyy down. Might be an easy fix I just haven't looked at it yet.
On Tue, Jun 7, 2016, 3:03 PM Brian Erikson notifications@github.com wrote:
As I was going through TODOs, I noticed that the camshake doesn't actually work? TODO!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EmergentOrganization/cell-rpg/issues/110, or mute the thread https://github.com/notifications/unsubscribe/ABAK_jzAqQ40KfaZThdg8DXrjd1mjq2_ks5qJcCPgaJpZM4IwQLo .
To explain, the camShake
was being overridden by the camFollow
method. To fix this, I altered the shake method to push a task to an array which is ran during the processing of the CameraSystem
class. I also added a Vector2 gameCamDelta
to aid in the clarity of this, which actually moves the camera in the end
method of the system.
As I was going through TODOs, I noticed that the camshake doesn't actually work? TODO!