Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] How to make a bridge

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old July 21st, 2013 (11:20 PM).
Larryturbo Larryturbo is offline
 
Join Date: May 2013
Gender: Male
Posts: 44
I want to create a bridge similar to the one in Roark's gym.A bridge that you can walk under it in any direction,while at the same time not being able to walk off when you are on it.Is that possible?

I have set the bridges .it seems I can walk both over and under no problem,but I can also jump of if I go down or up.
Reply With Quote
  #2    
Old July 22nd, 2013 (01:00 AM).
Kaito123 Kaito123 is offline
 
Join Date: Jul 2012
Gender: Male
Posts: 42
Go to your Database to Tilesets, then look at the "Passage (4 dir)" from your Bridge. The Tiles, there are at the Most left or right side, you Must deactivate that you can go more left or more right

Sorry for my english, I'm German
Reply With Quote
  #3    
Old July 22nd, 2013 (02:55 AM). Edited July 22nd, 2013 by Larryturbo.
Larryturbo Larryturbo is offline
 
Join Date: May 2013
Gender: Male
Posts: 44
I know what you mean but if I disable the passage from those directions,I will make it impossible for the player to go underneath,one solution would be to put some invisible blocks that don't allow movement
from a single direction,so I then would be able to restict up movement while allow down, the problem is that the bridge tiles are 1 square wide so it would be impossible to implement.

Another thing I just thought is to set some events on the sides of the bridge that would turn Through ON for the player.This would be extremely dangerous,what if the player decides not to go under the bridge.
Reply With Quote
  #4    
Old July 22nd, 2013 (04:41 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,147
Have you considered looking at the several examples of bridges in the example maps? They work just fine.
__________________
Reply With Quote
  #5    
Old July 22nd, 2013 (05:49 AM).
Larryturbo Larryturbo is offline
 
Join Date: May 2013
Gender: Male
Posts: 44
I just can't do it. I'll simply remove that bridge.The bridge scripts are all over the place and are dependent on other scripts ,meaning that it's really difficult to edit and keep track,thanks for your help anyways.
Reply With Quote
  #6    
Old July 22nd, 2013 (03:36 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,147
Honestly, you don't need to fiddle with any scripts. I did all the script-related stuff when I wrote the bridge scripts.

All you need is to set your bridge tiles to terrain tag 15, priority 4, and give them movement permissions as if you were walking on them (i.e. can walk east/west but not north/south for your bridge). Then use two (sets of) events for each of the bridge, which call pbBridgeOn or pbBridgeOff depending on whether they're nearer or further from the ends of the bridge respectively - see the example maps.

It's not difficult.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 10:40 AM.