I'm trying to create a collision box around a sprites feet with agk::SetSpriteShapeBox but when I to set different sprite positions the collision box moves.
joggerImage = agk::LoadImage("Images/jogger.png");
joggerSprite = agk::CreateSprite(joggerImage);
agk::SetSpritePositionByOffset(joggerSprite, 400 , 30.0f);
agk::SetSpriteSize(joggerSprite, 20.0f, -1);
//agk::SetSpriteShape(joggerSprite, 2);
agk::SetSpriteShapeBox(joggerSprite, agk::GetSpriteX(joggerSprite) - 300, agk::GetSpriteY(joggerSprite) - 10, agk::GetSpriteX(joggerSprite) - 280, agk::GetSpriteY(joggerSprite), 0);
testJog = true;
testMove = true;