WALK BEHIND REGIONS to not effect certain objects

Started by subspark, Tue 02/09/2003 10:46:44

Previous topic - Next topic

subspark

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?

SSH

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?
12

subspark

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!

SSH

I can't think of anything else: maybe if you could post a screenshot or the game we could have a better idea?
12

subspark

#4
 (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

SSH

Can you post the closed door sprite, too, please?
12

subspark

#6
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 :)

subspark


Ishmael

*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)?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

subspark

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.

Ishmael

Read the f***ing manual. There is RemoveWalkableArea and RestoreWalkableArea (or something like that) in there... in room/screen functions, I believe.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

subspark

#11
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!

SSH

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  ;) )
12

Gilbert


SMF spam blocked by CleanTalk