change the scale of character playing

Started by nubuks, Tue 22/05/2007 18:11:02

Previous topic - Next topic

nubuks

Hello everybody , i'm new here and i'm just starting with ags , i really like this software and i'm currently making a game with my girlfriend ( i'm french sorry for my english  ;D ).
I wish to know if it's possible to resize the character depending on where he's walking , whether he's in the backgroung or in the foreground . I read the manual but i'm not good at programming and i didn't see any function that can do that. It would be great if any of you could help me ? Thanks

Ashen

From The Manual:
Quote
AGS supports scaling of characters, where the character can appear to get smaller as he walks away from the screen. Character scaling is supported as part of the walkable areas in a room.
...
The default for all walkable areas is 100%, ie. full size. However, you can adjust it using the "Walkable Areas" mode to anywhere from 10% (one-tenth size) to 200% (double size).
...
If you check the "Use continuous scaling" box, then rather than just specifying a zoom level for the whole walkable area, you specify a min and max zoom level. These specify the scaling at the top and bottom of the walkable area. When the game is run, AGS will interpolate these values to make the character smoothly scale down from one value to another as he walks towards the back or front of the screen.

That's in the Rooms editor, when you draw the walkable area.

Also: Character.ManualScaling and Character.Scaling property, to have it affect individual characters.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk