Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
andrewjrmill

Hi i added a titleset to my game and i can walk through walls

Question

Hi, Everyone im having problem, i added a titleset to my game and when i jut houses on the map and play to try and you can go through walls what is the real way on how to stop it., what one of these do i use passage, passage (4 dir) priority, bush flag,counter flag ,terrain tay, what one do i use to stop this

 

thanks everyone for your help

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

hm...are you using any scripts? if so, which ones? they might cause some problems with passability. also, try starting a new game, or just make an event that sets through to off for the player.

Share this post


Link to post
Share on other sites
  • 0

Ah, sorry bout that. I don't really use the RPG Maker Editor. RPG Maker has a funny way of dealing with passability, so I did a little bit of digging for you:

 

    
   # Loop searches in order from top of layer
   for i in [2, 1, 0]
     # Get tile ID
     tile_id = data[x, y, i]
     # Tile ID acquistion failure
     if tile_id == nil
       # impassable
       return false
     # If obstacle bit is set
     elsif @passages[tile_id] & bit != 0
       # impassable
       return false
     # If obstacle bit is set in all directions
     elsif @passages[tile_id] & 0x0f == 0x0f
       # impassable
       return false
     # If priorities other than that are 0
     elsif @priorities[tile_id] == 0
       # passable
       return true
     end
   end

 

According to this snippet, once passability against events have been tested, the script checks the tile on layer 3 then 2 then 1.

The interesting thing to note, is that if a tile on a higher layer has a priority of 0, that tile will be considered passable.

 

CHeck that you don't have tiles layered above the impassable tile, that have their priority set to 0.

Share this post


Link to post
Share on other sites
  • 0

oh yea, ive had some problems with that. the only way i can think of to get around that is with eventing. if my hunch is correct, then thats your problem, and can be fixed by, instead of a tile on the 3rd layer, or whatever layer the tile above the wall is on, use an event with the "always on top" check box checked, and the graphic set to the tile that you were using before.

Share this post


Link to post
Share on other sites
  • 0

Another issue people don't seem to check is directional passability. Make sure to check that too if the problem crops up again.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...