Jump to content
Sign in to follow this  
Valjean83

Looping Trouble with Effectus

Recommended Posts

Hey all.  I have been using Effectus to great...uh...effect, but I ran into a snag.

The script works great but there are some passability issues

Quote

  # * Passable?                                                         [REP]
  #--------------------------------------------------------------------------
  def passable?(x, y, d)
    if ($game_map.ms_effectus_loop_vertical? ||
       $game_map.ms_effectus_loop_horizontal?) &&
       (x < 2|| y < 2 || x > $game_map.width - 2 || y > $game_map.height - 2)
      return ms_effectus_original_passable?(x, y, d)
    else
      x2 = x + (d == 4 ? -1 : d == 6 ? 1 : 0)
      y2 = y + (d == 8 ? -1 : d == 2 ? 1 : 0)
      return true unless $game_map.valid?(x2, y2)
      return true if @through || debug_through?
      return false unless map_passable?(x, y, d)
      return false if collide_with_characters?(x2, y2)
      return true
    end
  end

 

on the world map the ship hits an invisible barrier when it reaches the edge of the map instead of looping.

if you switch the top true/false to true, the barrier disappears but you can walk off the edges of the other maps.

I would like to make it so the ship can loop around the world map while also having the game recognize barriers

on the other maps.  The ship and boat are the only ones i've seen that hit the imaginary barrier.

Any help at all would be so helpful.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted