Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: viktor on Tue 26/10/2004 19:50:32

Title: aligning to the y coordinate- solved
Post by: viktor on Tue 26/10/2004 19:50:32
Hy I'm back after a while. My computer was brokedown so I couldn't visit the forum that often. Yesterday me and my friend started on a short project (just to show him the basics of AGS- he's a beginer). But we stoumbled on a problem. We hawe two animation loops and want to alighn them with SetCharacterViewEx. But in the manual  it only descriebes how to alighn to the x coordinate. Is it posible to align to the y coordinate?

to put it simple: we hawe two loops. One is higher then the other. Can I algn them somehow (without resizing) so that the character won't seem to jump when the animation runs.
Title: Re: aligning to the y coordinate
Post by: BorisZ on Tue 26/10/2004 21:43:59
What's wrong with resizing images to fit bottom axis?
Title: Re: aligning to the y coordinate
Post by: Ashen on Tue 26/10/2004 22:40:44
I'm not sure I totally understand the question, but wouldn't SetCharacterViewOffset (CHARID, int view, int xOffset, int yOffset) work? It's slightly more fiddley than the Left/Centre/Right style of SetCharacterViewEx(), but should do the job - assuming I read the problem right, of course.
Title: Re: aligning to the y coordinate
Post by: viktor on Wed 27/10/2004 06:08:49
Quote from: BorisZ on Tue 26/10/2004 21:43:59
What's wrong with resizing images to fit bottom axis?

The problem is that I hawe about a 100 loops (exagurating a bit) and resizing each and every one would be to much work.

Anyway the problem was solved and the animation works...