npc above walk behinds

Started by Anarcho, Sat 14/08/2004 18:45:18

Previous topic - Next topic

Anarcho

How do I get an npc to be above a walk behind?  I've got a guy on a couch that needs to be sitting on it, but i need the main character to be able to walk behind the couch.

I feel like there is an obvious answer to this, but i've looked around and can't seem to find it...


Scummbuddy

you need to place your walkbehind baselines. check the tutorial in the ags help file for more information, but basically place it at the base of the couch, but test it out and tweak it.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Anarcho

Well in the manual is says that you have to set the baseline at the lowest point of the walk-behind area.Ã,  And that's what I did, but since the couch is at an odd angle, I don't see how that's supposed to help.Ã,  Check it out.



This is the image as i drew it in paint shop, but the guy in the shorts is a character, and when i put him in the game he's behind the couch since i made the couch one big walk-behind.Ã,  now i can take out the walk behind shading around where he's sitting, but that's hard to do...and more importantly, his arm swings up to answer a cell phone, and since i need that ash tray to be a walk behind, it looks like his arm disappears for a second.Ã, 

I don't see how the baseline would have any effect on this problem.Ã,  There's no way to just make it so the charcter ignores the walk behind area?


Barbarian

You could set a character's baseline to be above or below the Walkbehind and perhaps find the effect you want, here's an example from the AGS manual:

SetCharacterBaseline(MAN, 120);

will move the character's baseline ( which can be used for testing collisions, or for walk-behinds) to a line positioned at y coordinate = 120.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

TheJBurger

There's a simple way to do this,

SetCharacterIgnoreWalkbehinds (CHARID, int ignore)

The character will not be affected by walkbehinds.

Anarcho

AH, that's what i was looking for.  thanks!


Etcher Squared Games

I have a situation like this in my first game I'm making and I solved it in a different way...

the couch (table in my case)  I gave it 2 different walk behind sections..

in your case...

well I'm just going to make a pic and link it....
http://www.geocities.com/etchersquaredgames/ideacouch.JPG

with base lines and everything
website: http://www.etcher2games.com/
email: etcher2games@yahoo.com
forum: http://www.etcher2games.com/forums

Anyone want to make my website for free?


SMF spam blocked by CleanTalk