Problem with character's scaling

Started by Guido89, Wed 15/08/2007 06:12:53

Previous topic - Next topic

Guido89

Hello everyone, I'm Guido89. I'm new at AGS and I would like to make my own game by starting from scratch (by using AGS 2.7.2). I started by making the main character and by having the first room (that is a screenshot of a countryside place). I've just read the starting tutorial and everything works fine (no error messages I mean). But I have a problem with the character's scaling: instead of becoming smaller as he moves to the countryside's horizon, he turns bigger and viceversa. I have looked in the AGS forum to get a solution and I have found this topic (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18073.0) started by Leo who seem(ed?) to have my same problem. As he did, I have tried to use the "continuous scaling option" by setting a mid and a max variables and, as he figured, I have got them automatically reverted to max and mid. Posted solution has not worked so I am still "stuck" with the creation of my game because I am just waiting for an answer. Thanks in advance for help.
"Experience is a hard teacher because it gives you the test first and the lesson after" (Vernon Sanders)

Free videogames mp3 http://downloads.khinsider.com/?u=3023

Gilbert

#1
Did you set appropiate scaling parameters for each used walkable area? You nee dto set them for each area separately.

What did you mean by reverting to max and mi[p]n[/b]? How's your background composed? I think AGS currently restricted the characters to get smaller when he's waliking upwards ("into" the screen), but not the other way round. You know this is normal behaviour, unless you really want in some case that the character gets smaller when he walks down (like for example waliing on the ceiling), which unfortunately can't be done without scripting at the moment (like I mentioned in that thread you linked to).

Guido89

Hi Gilbot, thanks for your quick answer. Now, let me explain:

Quote from: Gilbot V7000a on Wed 15/08/2007 06:21:16
Did you set appropiate scaling parameters for each used walkable area? You nee dto set them for each area separately.

I made a single walkable area with blue line (Editing: 1) that covers the whole path that main character is allowed to explore.

Quote from: Gilbot V7000a on Wed 15/08/2007 06:21:16
What did you mean by reverting to max and mi[p]n[/b]?

Sure you noticed that under the "Use continuous scaling" box there is "Zoom level: a% to b%". As I have read in the documentation and in the topic I linked you, the a% should be the minimum percentage of the size (that the main character does acquire when is "into" screen) and the b% should be the maximum percentage of the size (that the main character does acquire when he is... hmm... "near" me). By assuming that this reasoning is right, it happens to me - when I save the game or the room - that the digit that I put in the first box (the a% - the minimum percentage's one) swap itself automatically with the one that I put in the second box (the b% - the minimum percentage's one). So it gives me an unwanted effect of perspective.


Quote from: Gilbot V7000a on Wed 15/08/2007 06:21:16
How's your background composed?

It is just a "test" background - just to get the hang with AGS. There is a courtyard inside which the main character start. It is surrounded by a wall. on the right, there are some stairs. On the front, where we can see the wall, there is an overture that let the main character go out and move towards the horizon.
"Experience is a hard teacher because it gives you the test first and the lesson after" (Vernon Sanders)

Free videogames mp3 http://downloads.khinsider.com/?u=3023

Gilbert

Quote from: Guido89 on Wed 15/08/2007 06:49:03
Sure you noticed that under the "Use continuous scaling" box there is "Zoom level: a% to b%". As I have read in the documentation and in the topic I linked you, the a% should be the minimum percentage of the size (that the main character does acquire when is "into" screen) and the b% should be the maximum percentage of the size (that the main character does acquire when he is... hmm... "near" me). By assuming that this reasoning is right, it happens to me - when I save the game or the room - that the digit that I put in the first box (the a% - the minimum percentage's one) swap itself automatically with the one that I put in the second box (the b% - the minimum percentage's one). So it gives me an unwanted effect of perspective.

Hmmm odd, I just tested with V2.72 and the result is as expected. When I set it to 10% to 200% everything works fine, and when I set it to 200% to 10% it's swapped to 200% to 10%, which is expected behaviour.

Guido89

"Experience is a hard teacher because it gives you the test first and the lesson after" (Vernon Sanders)

Free videogames mp3 http://downloads.khinsider.com/?u=3023

Gilbert

Strange, can you upload the room file for us to investigate what's wrong?

Khris

Just to exclude this possibility:
Your path isn't like, strangely shaped, i.e. the foreground being higher on the screen than the part in the back or something?

SMF spam blocked by CleanTalk