![]() |
Bridge under/over player question
Hello
On Ol'West I'm trying to make a bridge which can be walked under and over depending on which direction you walk onto it from. I don't want to use attachtoobj. I was thinking more of a layer approach. I had hoped I could use player.layer but it doesn't seem to exist. http://i.imgur.com/ydyja0B.png I made the bridge a separate graphic, and the rails are all separated as well. I was thinking I could put 4 radius detection npcs, one at each part of the bridge, and they'd detect if the player is there on the client side and change the layering and setshapes depending on where they enter from. I can't get anything to work, and I really do not want to use attachtoobj because there's too many problems with other things like if the player enters their house or hops on a horse or something it could cause a mess. Also from my experience with attachtoobj on Delteria, I remember it causing everybody else to disappear when you're attached, which is complete trash. Any ideas? |
hello!
i personally accomplish this by using setshape2, with both a vertical and horizontal set of width/height/offsets |
Quote:
How do you make it so the image will show over the player for everyone if you walk under it and under the player if you walk over it? That's my problem. I don't want players being shown above the bridge for some people and underneath for themselves or others, it needs to all display correctly. |
The way I can think of working the best is changing the player's layer, if only that was possible..
|
Others have done this by hiding the player altogether and showing gani's in place of the player I believe. I know I've made a bridge like this before and just as you said, I had the exact problem. It's because if you walk under the bridge you won't be seen and neither will the players on top of the bridge they appear under when your under, and vise-versa. Attaching player to the object is the easiest way to do it but I hear there is a lag issue when doing that.
|
Quote:
|
Quote:
|
Honestly the best approach with out a terrible work around would be attach the player to the bridge. And for things such as warping while on the bridge you could always detect if there attached and detatch them. Few ways you could do this, my favorite method is onplayerleaves.
|
Quote:
Edit: Actually, I think I may have figured it out. attachplayertoobj works differently on GMAPs, I don't think it hides players when using it there - I'll see. |
Quote:
Quote:
|
Me personally? I wouldn't bother. All the current methods look & act crap.
Add a level under the bridge, add some homeless guy there or something interactive. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:47 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.