Creating hills to walk behind in rooms

Started by Ferret, Fri 05/03/2004 09:54:46

Previous topic - Next topic

Ferret

A friend and I have been planning an adventure game for some time now, we've got the entire plot and most of the puzzle completly worked out so we're finally starting to code it.
Now I've got my GUI almost sorted and I feel I have at least a decent knowledge of AGS. (Famous last words)

Now one of our scenes demands that the character walks behind a hill and then off into the distance. This is a snippet from a sketch of the room:



I need the players character to start close to the players point of view (On top of the hill) without changing size on that part, then walk over the hill, so it obstructs the view of the character than appears on the other side but scales with distance on that part.
I hope you get what I mean, heh.

My main problem is making the character disappear behind the hill and appear on the other side, the character also needs to be controlable on the other side.

ON TOP OF THIS, the player character also has another character following.

Any help would be greatly appreciated.

Thanks.

j-Hed

Hi Ferret!

I know how to do this (I think).
Put a (quite narrow) wakablearea(nr. 1) as far as the edge of the hill only exactly where the player should walk.

Next make walkablearea nr. 2, it should continue the first walkablearea downleft a bit (to make it feel like the player walks down the hill) then turn in a curve to straight upwards (to make it feel like he goes from speep hill to flat street).

Make an object of the hill and fit it over the background hill. The hill object should be non-clickable (put setobjectclickable(0,1); under "when player enters screen before fadein").

Now make two regions, nr.1 should in this case cover the right side of the hill (from screen edge right to the edge of the closest walkable area orrather one pixel-line beyond).

Nr. 2 should cover the rest of the screen.

Now the scripting: Region 1 - while payerstands on region - objectoff(0);
                             
                             Region 2 - player walks onto region - objecton(0);
                             + player walks off region - objectoff(0);

Walkable area nr. 1 - I put "continous scaling" 120% to 100%
                  on nr. 2 - I put "continous scaling" 50% to 100%  

I tested this and it works fine, good luck Ferret!

Ferret

I kind of half understand what you're saying.
Okay, I'll go and try it out. Thank you very much.

Ferret

Wight wight...... These walkabale areas.....
*Is confused*
I completly don't get what you mean with where I should draw them, plus I personally can't work out how I can manage it your way while getting a suitable looking effect. ???

j-Hed

It looks really good if you do it right.
I can e-mail my test game (or the walkable areas etc.) to you if you have an e-mail that can recieve more than 1mb.

It is very hard to write how it should look, so I knew you wouldn't understand all of it, I know I wouldn't. ;)

Ferret

I just send you an instant message, I'm not sure what the notifications of that are like on this board, so I thought I would notify you myself. ::)

SMF spam blocked by CleanTalk