Walking Down Stairs

Started by Dervish, Tue 11/12/2007 04:31:22

Previous topic - Next topic

Dervish

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.




TheJBurger

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:
Code: ags

player.IgnoreWalkbehinds = 1; // This ignores walkbehinds.

Then, once the player walks on the very top of the exit, re-enable them.
Code: ags

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.

Recluse

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 :(
All your verbcoin are belong to us.

Ashen

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 could be the one Recluse is thinking of. Even if it isn't it might still help here, handling the z-coordinate part.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk