Advanced Bridges

This tutorial explains how you can create bridges that your party can travel both over and under. In addition, it demonstrates the creation of a proper mountain rope bridge and a dungeon of disappearing bridges! To start it all off, here's a complete description of the event options you will need to use.

Event Options Show
'Through'
When checked, this option ignores the passability data of the event, using the highest edited layer's data instead. It does not, automatically set tile to passable.

'Always on Top'
When checked, this option displays the event graphic over everything including the player. In addition, if the graphics of two events with this option enabled overlap the graphic of the event with the higher event id will be layered on top of those with a lower id.

Second, create a variable and call it height or level. Any time you go up or down a staircase, ladder, ramp etc. use a player touch event to change the variable to your new height. This will allow you to control the passability and visibility status of the bridge events.

Next create the bridge itself. It's simple enough, each event only takes two pages. The first page for when you are under the bridge and the second for when you are on the same level or above the bridge.

Most Bridges Show
All Pages
Graphic: (Tileset) - Bridge

Page 1 (under the bridge)
No Conditions
Options: 'Through' and 'Always on Top' should both be checked.
Note: If 'Through' is not checked and the tile below is impassable (cliff, crevasse etc.) you will be able to walk right through it.

Page 2 (same level as bridge)
Condition: Variable Height = 1, 2 etc. (height of bridge)
No Options

Horizontal Railing, Rope and Stone Bridges Show
Bridges Charset
Image

All Pages
Graphic: (Tileset) - Bridge or Bridges
Note: The included Bridges charset in the demo is used to create the front tile of each bridge. Make sure the event id of front piece is greater than those in the rear or else the bridge will not display properly.

Page 1 (under the bridge)
No Conditions
Options: 'Through' and 'Always on Top' should both be checked.
Note: If 'Through' is not checked and the tile below is impassable (cliff, crevasse etc.) you will be able to walk right through it.

Page 2 (same level as bridge)
Condition: Variable Height = 1, 2 etc. (height of bridge)
No Options

Finally, you need to create the ends of the bridge. Once again, it will take 2 pages.

Most Bridges Show
All Pages
Graphic: (Tileset) - Cliff Edge

Page 1 (under the bridge)
No Conditions
No Options

Page 2 (same level as bridge)
Condition: Variable Height = 1, 2 etc. (height of bridge)
Options: 'Through' should be checked.
Note: Be sure to replace the cliff edge under the event with ground tile (passable)

Horizontal Rope Bridge (overlaps cliff edge) Show
All Pages
Graphic: (Tileset) - End of Bridge or Bridges

Page 1 (under the bridge)
No Conditions
Options: 'Through' should be checked.

Page 2 (same level as bridge)
Condition: Variable Height = 1, 2 etc. (height of bridge)
No Options
Note: Don't replace the cliff edge under the event with ground tile (passable)

Be sure to add shadows under the bridges. If you are planning on having the bridge appear/disappear they should be in events with through as an option.

As for the invisible part, just use a switch. Add it as a condition to both pages of the bridge event and page 2 of the cliff event with most tilesets. If you are using the rope bridge both pages of the bridge end event should have it as a condition. Additionally, be sure to add it to all shadows.

Bridges in the Editor Show
Image
Note: I made the lower cliff edge passable.

Bridges Ingame Show
Image

Image

Image

Image
Note: The statues are switches to make the bridges appear/disappear.

Thank you Kraft for pointing out I needed shadows.

Alternate Methods:
For a full discussion of alternate ways of doing this see link below.
Overpass Bridge Problem

Demo:
Currently unavailable due to SMF switch.
I've added a lot to this tutorial recently, including additional content, spoilers, pictures and a link to Ccoa's Tileset Swap. If you read this tutorial when it was first posted please give the new version a glance.
Awesome! I'm using this in my game now that I understand it.
Very nice. Thanks a lot~
Just as a mapping suggestion for the peoeple who use this (and in your in-game screenshot) Try placing the shade tile (it is in the upper left of the tilesets and is grey) on the tile under the bridge (depenging on how high up the bridge is, place it under the bridge on different tiles.

It looks good.

Just a suggestion, you dont have to listen if you dont want to.

I guess.
Thanks Kraft. Will do.

Edit: There, I've added shadows and credited Kraft for pointing it out.
Sorry to bump this...but I PMed Icarus a problem I had when putting in shadows. I don't know if he got it or not, I think its been a while. Anyways let me know if you have a solution for me Icarus.

If anyone is willing to help, please let me know. If so I will try my best to explain the error again, it is hard to explain...
Solution PMed to BellGoRiiing
i never would have thought of this method, suprisingly simple but very effective :)
when I use this, I'm using events to create disappearing bridges. But when they appear and you can walk ontop, if you stray away from the bridge you just go straight to bottom level. Is there a way to fix that without screwing everthing up?
[QUOTE=sasuke89;280572]when I use this, I'm using events to create disappearing bridges. But when they appear and you can walk ontop, if you stray away from the bridge you just go straight to bottom level. Is there a way to fix that without screwing everthing up?[/QUOTE]
Sasuke, on page 2 of your bridge events, make sure that 'Through' is not checked. If it's not that, it could be a passablity error in the tileset.
I've got a problem too...Everything works just fine, except that the end tile, that cliff edge one, it's always visible over the character, the character is thus hidden. And it shouldn't be. Could you please please help me?Pretty pretty please?:)
I noticed on some of your bridges that when the top and bottom reach an area, you still have the "blocked" priority tile of the walkable raised grounds. Actually would it not be better, to have the irregular corners carry out under the bridge, it would look more natural and well placed. AS well, the player will actually be able to cross it.

That is just me, I map different than you, the maps actually hurt my eyes cause the depth is off.
[QUOTE=mykrme;287792]I've got a problem too...Everything works just fine, except that the end tile, that cliff edge one, it's always visible over the character, the character is thus hidden. And it shouldn't be. Could you please please help me?Pretty pretty please?:)[/QUOTE]

Make sure "Always on Top" is not check in your event. If not that, it could be a tileset priority problem.

[QUOTE=Axerax;288054]I noticed on some of your bridges that when the top and bottom reach an area, you still have the "blocked" priority tile of the walkable raised grounds. Actually would it not be better, to have the irregular corners carry out under the bridge, it would look more natural and well placed. AS well, the player will actually be able to cross it.

That is just me, I map different than you, the maps actually hurt my eyes cause the depth is off.[/QUOTE]

I can't smoothly merge the cliff corners and bridge without editing them. Looking back at my map, I did fix a few mapping errors.
Wow, Thanks Helped A lot!
I did what the thread said and it didnt work...
[QUOTE=rpgamer_01;290739]Wow, Thanks Helped A lot![/QUOTE]
Your welcome.

[QUOTE=trizicus;291895]I did what the thread said and it didnt work...[/QUOTE]
Care to elaborate Trizicus?
___________________________________________________________
___________________________________________________________
[QUOTE=trizicus;292468]Maybe actually I have a better idea... Why dont you upload a demo so I can try it hands on...[/QUOTE]

I've added it a demo as an attachment to the header post.
great tut!:D Now I can Finaly make bridges like that for my game
"Elvander and the lost Jewels":D
I am still trying to learn how to post threads so that I can make one about it, I don't know how to post threads.-_-
I noticed also that when you showed a prinscrean of the map in gameplay, there is one area with a chest that you cannot get to, and that in the other printscrean on the event layer there is suppost do be a bridge to it.@_@
nice tut!
[QUOTE=Dreamland;304561]I noticed also that when you showed a prinscrean of the map in gameplay, there is one area with a chest that you cannot get to, and that in the other printscrean on the event layer there is suppost do be a bridge to it.@_@[/QUOTE]

The bridge you mentioned is currently invisible ingame. The switch that activates it is off.

[QUOTE=Dreamland;304540]great tut!:D[/QUOTE]
[QUOTE=bojox3m;304666]nice tut![/QUOTE]
I'm glad both you liked it.
I don't see the TUT...

EDIT: never mind... Great TUT!
thanks for a much-needed tutorial!
btw, Is it possible to use the 'rope bridge' ?
to make a bridge, you use both 2nd (bridge) and 3rd(ropes) layer.
so when you place an event, it erases the ropes in 3rd layer.
I made a new tile, that shows both bridge and ropes. but then when on the bridge, you walk on the ropes.

Content Hidden Show
http://i103.photobucket.com/albums/m151/scythergirl1/bridgetutorial.jpg[/IMG]
http://i103.photobucket.com/albums/m151 ... orial2.jpg[/IMG]


oh, about your sig, I believe 'Fi' isn't legible, cause 'the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae.' XD
[QUOTE=silver wind;305400]
thanks for a much-needed tutorial!
btw, Is it possible to use the 'rope bridge' ?
to make a bridge, you use both 2nd (bridge) and 3rd(ropes) layer.
so when you place an event, it erases the ropes in 3rd layer.
I made a new tile, that shows both bridge and ropes. but then when on the bridge, you walk on the ropes.

Content Hidden Show
http://i103.photobucket.com/albums/m151/scythergirl1/bridgetutorial.jpg[/IMG]
http://i103.photobucket.com/albums/m151 ... orial2.jpg[/IMG]

[/QUOTE]
First of all, I'd like to apologize the extremely slow reply Silver Wind. You were on the right track. Instead of merging the bridge and the overlapping ropes you should merge the ropes and partial bottom tile of the bridge together into a charset.

Bridges Charset Show
http://img69.imageshack.us/img69/5323/bridgespz8.png[/IMG]

Ingame Screenshot Show
http://img239.imageshack.us/img239/6931/ingame1rp8.png[/IMG]

Please see my revised and updated tutorial for details or download the attached demo here. Thank you for your patience.

P.S.
[QUOTE=silver wind;305400]
oh, about your sig, I believe 'Fi' isn't legible, cause 'the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae.' XD
[/QUOTE]

Your right of course. I've changed my signature slightly.
thanks. I figured it out eventually, even made a tutorial myself for the rope bridge. since you updated your tutorial, and mine wasn't approved yet, I don't have to submit it.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=14804