Ok My question is there anyway to easily make the character walk down the stairs to the subway. in other words using possibly walkbehinds or something. I probably have to make a seperate animation but if anyone has any ideas let me know.
(http://www.2dadventure.com/ags/AGSHotelStreet.gif)
Quote from: Dervish on Tue 11/12/2007 04:31:22
in other words using possibly walkbehinds or something.
Yes. That is perfectly possible.
One way to do this would be to draw a walkbehind where the front sidewalk is, but while the player is walking over that area set:
player.IgnoreWalkbehinds = 1; // This ignores walkbehinds.
Then, once the player walks on the very top of the exit, re-enable them.
player.IgnoreWalkbehinds = 0; // Back to normal.
Then you can send the player down the stairs (behind the sidewalk) and change room. If you have other walkbehinds in the room that must be used by the player, you can only set ignorewalkbehinds=1 when the player walks close to the exit, by using regions.
Hope this solved your problem.
I recall there being a module or plug-in for this after Apprentice was released, because so many people wanted to know how the programmers implemented the hill on the tower. I'm not sure what it was called though :(
As well as Walkbehinds, you might need to change the Character's z property, so they walk down the stairs, but away from the 'camera' (which is up the screen).
SSH's Downhill module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29235.0) could be the one Recluse is thinking of. Even if it isn't it might still help here, handling the z-coordinate part.