Jump to content
Jackcib

Follower Move Route Issue while Jumping

Recommended Posts

So right now, I'm working on a sidescroller RPG game, and I'm trying to make it so you can have multiple followers while exploring the map. When trying to execute the jump command, the follower goes through blocks and floats. How do I fix this? A bit of useful information is that I used the jump event to make the main player jump (Surprising, I know!), and I've tried using some follower scripts but had no success using them. Please help. Thanks in advance.

Share this post


Link to post
Share on other sites

Try this snippet from Galv

class Game_Player < Game_Character
  def jump(x_plus, y_plus)
    super
    @followers.each { |f| f.jump(@x - f.x, @y - f.y) }
  end
end

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted