Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sydrik on Sun 05/04/2009 17:48:18

Title: How to Center Sprite?
Post by: Sydrik on Sun 05/04/2009 17:48:18
Is there a way to center a sprite for a view?

The problem I am having is that my sprite seems to be leaning a little above to the top. As a result, as my character is walking on the walkable area, he seems to move higher than he should, thus making him walk on walls.

You can download my compiled work here (http://www.going-nowhere.org/files/officehours.exe). Move the character below a wall, and you'll see what I mean.

Thank you.
Title: Re: How to Center Sprite?
Post by: monkey0506 on Sun 05/04/2009 17:59:49
Unless you have transparent pixels lining the bottom of your sprites this shouldn't be happening anyway, but you could use Character.Z to offset them.