Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: subspark on Tue 02/09/2003 10:46:44

Title: WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 10:46:44
I am making a room where if ego opens the door, light hits the room in certain areas around the door. I have used a closed door sprite and made it an object so that when the character clicks open on the object, the object is hidden and the background is revealed eg the door in its opened state with the light hitting the floor.

My problem is when you set walk behind areas. They effect my door closed object and some of the light from the door's opened state is showing. Is this a bug with AGS 2.56a? Does the walk behind areas normally effect objects?

I can't load any screenshots coz my website is on my comp oversees.  :'(

Does anyone have the slightest idea whats going on here?
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: SSH on Tue 02/09/2003 12:10:34
Are you sure that the transparent colour for your door-closed sprite isn't cropping up in the wrong place, maybe? Check the sprite in AGS: does it have purple where you don't expect it to be?
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 12:14:36
no heheh its all set. I would have ran into it  earlier otherwise. Of course you didn't know that.

Nah its some weird thing.

Lemme check it out some more but please if u gotz tha answer then do let me know.

Even if you try the whole thing yerself...

cheers anyhow mate!
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: SSH on Tue 02/09/2003 12:27:04
I can't think of anything else: maybe if you could post a screenshot or the game we could have a better idea?
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 12:45:15
 (tripod wont link my images properly those bast@rds. so you have to copy the url and paste it into your browser... :-[


Here is the walk behind area:
http://blue-rush.tripod.com/1.jpg


Here is how the object is being effected in-game:
http://blue-rush.tripod.com/2.jpg   Note: My ego's colors stuff up in this room! I think my bg's got too many colors. ??!


Here's how it should look in-game:
http://blue-rush.tripod.com/3.jpg

Here is the open door which really is the revealed background image:
http://blue-rush.tripod.com/4.jpg
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: SSH on Tue 02/09/2003 12:56:47
Can you post the closed door sprite, too, please?
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 12:59:16
it is there! 3.jpg

I need a big sprite to cover up the light affected areas.

It's not interactive. i have another smaller door sprite that you can click open on and all that. the big sprite is simply to cover the light :)
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 13:21:50
any suggestions?
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: Ishmael on Tue 02/09/2003 13:29:33
*cough* If no-one replies to a thead for half an hour it doesn't mean they're out of ideas. It means no-one's here that time. *cough*

Use bg frames and control the action with SetBackgroundFrame(int whatever)?
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 13:37:33
Quote from: TK on Tue 02/09/2003 13:29:33
*cough* If no-one replies to a thead for half an hour it doesn't mean they're out of ideas. It means no-one's here that time. *cough*

*cough* I was simply saving it from being lost in the realms of abandoned topic posts ;) *cough*

No I can't do that. That means i'm going to have to undo the majority of my work and add another background sized image into the room. I'm not exactly resource heavy, I don't think anyone is anymore thesedays (hopefully) I just like to be tidy and resourcefull.

All I need to do is probably hide the walkbehinds. (if possible through a RemoveWalkBehind function or something) (doubt it exists) I can't change the baseline through scripting because that only relates to the characters.
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: Ishmael on Tue 02/09/2003 13:41:49
Read the f***ing manual. There is RemoveWalkableArea and RestoreWalkableArea (or something like that) in there... in room/screen functions, I believe.
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: subspark on Tue 02/09/2003 13:51:58
Are you f...ing stupid. You must be to assume I havent read the "f***ing" manuals) As far as I know there is "NOOOO" REMOVEWALK "BEHIND" areas. Why are YOU so short with me TK? I may be do things a little outside the box but really...thats no way to treat a fellow member!
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: SSH on Tue 02/09/2003 15:06:17
Calm down, guys!

Sorry, subspark, I was away doing other stuff for a while, I hadn't forgotten you!

I can't find anything to turn walkbehinds off, either, although I seem to remember someone else wanting to do it in a thread ages ago about this.

What I meant before is can you post just the closed door sprite without any background, ie what you get from the sprite manager export option

ahah... this is what you need!

SetObjectIgnoreWalkbehinds (int object, int ignore)


Looks like you should have RTFM after all!  ;D ;D ;D

(sometimes these things aren't quite where you think they are, but I found this by searching the forums for "walkbehinds")

Actually, that's a problem with the Help search: it gives you general areas to look at, but it would be nice if it found specific function names in the index rather than function sections...

Edit:

by the way, subspark, the graphics look great. Can't wait to see the game (with my name in the credits for scripting help, of course  ;) )
Title: Re:WALK BEHIND REGIONS to not effect certain objects
Post by: Gilbert on Wed 03/09/2003 03:42:22
It's time to keep this forum clean.