I'm working on a game that is a constant side scroller. I move the the viewpoint and sprite like this
moveScreenx = 0.65f;
agk::SetViewOffset ( fX, fY );
fX += moveScreenx;
agk::SetSpriteX(cynthiaSprite, agk::GetSpriteX ( cynthiaSprite ) + moveScreenx);
Jump
agk::SetSpriteY(cynthiaSprite, agk::GetSpriteY(cynthiaSprite) -32);
I want to use the impulse function because it makes the character jump look smooth and not choppy. The problem is when I try to use impulse function the setspriteX interferes with it.
agk::SetSpritePhysicsImpulse(cynthiaSprite, 0, 0, 0, -1500);
Has anyone run into this issue? Other thoughts on moving the character with the screen and using impulse?