View Full Version : Overpassing Bridges(Passabilty..Again)
Cyberdave
2004-09-26, 10:13 PM
l l
______l l_____
l ____****____
l l l l
l l l l
* is the bridge
When you come from the bottom or top the bridge appears overhead,you can go in any direction but not the far left or right(It's too high. When you come from the left or right the bridge is below you and you can not go up or down.
The problem is apparent. The bridge is always below you and can go in any direction.
I have an idea that involves lots of events but I just can't seem to change the direction passabilty.
BlueCube
2004-09-26, 11:44 PM
Surround the bridge with events like this:
[o][o][o]
[u]=========[u]
[o][o][o]
The bridge itself would also consist of an event (or a string of events, depending on its length). O events would set the bridge to be above you, while U events would set it to go underneath you.
--------------------------
Bridge Event - 2 pages
Page 1: Preconditions (none)
Event layer: "Below Hero"
Page 2: Preconditions (Switch 0099:BridgeAboveYou is ON)
Event layer: "Above You"
O event - 1 page
Trigger Condition: On Hero Touch
<>Switch Operation: {0099:BridgeAboveYou} ON
<>
U event - 1 page
Trigger Condition: On Hero Touch
<>Switch Operation: {0099:BridgeAboveYou} OFF
<>
=======
As you can obviously guess, this just switches the bridge to be above or below you, which is the effect you want.
Cyberdave
2004-09-27, 01:54 AM
Huh I never messed with the pages(Of course Derr) But is there any way to prevent the player who triggers the O event from just going to the side and triggering the U event?
If the O event triggers a switch: U no go and prevents movement for U's and the U does vice a versa, That'll work right? I think I just answered my own question, I'll go implement it right away, Thanks.... again
Cyberdave
2004-09-27, 02:37 AM
Nope that my O,U up and down is a hassle to code, It's much easier to have the lower block the ends from the bottom so the hero can get off but but not back on.
BlueCube
2004-09-27, 05:04 AM
Yeah, that was at 1:44 this morning, so you'll have to forgive me for my.. non-thinking ability.
I still haven't slept yet.
Yes, the O/U events would toggle between "Same Layer As Hero" and "Below Hero", which would activate via "On Hero Touch". So you'd need 2 pages on those events.
I should've included that, but it WAS 1:44 AM and quite frankly you're lucky I didn't answer with "<>DO THE SWITCHES THEN THE OTHER THING" .
Oh well. I hope it works for you, and I hope that I get some sleep at some point...
Cyberdave
2004-09-27, 03:39 PM
I'll sleep when I'm dead.
vBulletin® v3.8.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.