I have my character moving through the level like so:
agk::SetSpritePhysicsVelocity(m_spriteID,m_speed,agk::GetSpritePhysicsVelocityY(m_spriteID));
Now speed is a number that can change throughout the game depending on difficulty, balancing and so on. Now I could just set the ViewOffset like so:
agk::SetViewOffset(m_posX - m_Offset,0);
This will move it with my character with an offset so my character isn't at the edge of the screen.
Problem is if I want to make my character dash forward or get slowed down by certain objects in my game the ViewOffset is set to my characters position so it wont really react differently. Any suggestions on an easy way to get the ViewOffset to move at the same speed as my character without setting it to its position?