Make character keep head on same horizon line at all time

Started by georgebbb, Sun 17/05/2009 17:10:08

Previous topic - Next topic

georgebbb

Is there a way to make a character keep his head, when walking, on the same horizon line?

Instead of having him walk all over the place, ruining the perspective, I want him to walk like in Broken Sword.

Any way of doing this?

RickJ

If you are asking how to setup walkable area scaling then you just need to enter the desired values in the property pane in the room editor.   I believe it is explained in the tutorial and the manual much better than I could possibly do here.

georgebbb

Hello Rick,

I’m actually referring to the room perspectives horizon line.

Say you have a one point drawing of a room.
It has a single horizon line (the line the eyes are on).
The players head (more precisely his eyes) are supposed to always be on this line (except when he ducks or sits down).
In AGS the character moves al over the place, leaving this line and ruining perspective.

So I’m wondering if theirs a way to have a pivot on the characters head that never moves and have the body resize it self depending on where you are on the screen.
'If you’re in the foreground then the character sprite is big, but with the head pivot on the line, and if you move in the background, the sprite gets smaller, but again with the head pivot in the same place.

If you move sideways the sprite stays the same size.

If you have any ideas, please let me know.

RickJ

I suppose if the walkable area scaling is setup properly this behavior could be achieved.

lostbuthappy

Hi georgebb,
AGS comes with an extensive help file where the feature you're looking for is explained (Tutorial->Advanced Room Features->Character Scaling).
Disclamer: When I say I'm an artist I usually just mean that I can selectively apply filters to an image until it looks like a blurry version of Uranus.

georgebbb


Alright, didn’t make it clear so I made a sketch.



Is there a script for this?
If not, I’ll probably do it with scale and walkable areas.

Khris

Like RickJ told you, this can be achieved using the walkable area's scaling.
You'll just have to calculate the right zoom factor for the lower and upper end.
I tested this using Roger:
With a horizon line at 140, a walkable area from 155 to 215 and scaling from 45 to 200, Roger's eyes lined up with the horizon line just fine.


Khris

Just to clarify: it's always possible to do manual scaling using a scripted function of some kind, but in this case, where a linear scaling will do the trick, it's easier to just use the built-in stuff.

SMF spam blocked by CleanTalk