• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] How do you make the Bike "Speed up" when B is held?

  • 428
    Posts
    5
    Years
    Normally when walking you hold B to speed up.

    How can I make holding B while biking cause the Bike to "Speed up" to become as fast as the Mach Bike? Right now my V20.1 default Essentials Bike code is unmodified. I haven't done anything to alter the code of the bike yet.
     
    In the script section Game_Player there is this line of code at line 76:
    Code:
    when :cycling, :cycling_fast, :cycling_jumping, :cycling_stopped
    self.move_speed = (type == :cycling_jumping) ? 3 : 5
    new_charset = pbGetPlayerCharset(meta.cycle_charset)

    Change it to this:
    Code:
    when :cycling, :cycling_fast, :cycling_jumping, :cycling_stopped
          if Input.press?(Input::BACK) 
          then self.move_speed = (type == :cycling_jumping) ? 3 : 6
          else self.move_speed = (type == :cycling_jumping) ? 3 : 5
          end
          new_charset = pbGetPlayerCharset(meta.cycle_charset)

    I believe the first speed (the 3) is your jumping speed, while the second is your movement. You can go faster than 6, but the wiki says that going over 6 messes with touch events and other stuff, and is not recommended.
     
    The Speed Up Code for the Bike suddenly stopped working after I added the Following Pokemon script.

    I checked if "when :cycling, :cycling_fast, :cycling_jumping, :cycling_stopped
    if Input.press?(Input::BACK)
    then self.move_speed = (type == :cycling_jumping) ? 3 : 6
    else self.move_speed = (type == :cycling_jumping) ? 3 : 5
    end
    new_charset = pbGetPlayerCharset(meta.cycle_charset)" is still there. It is, but something overriding it somewhere.

    How do I fix this? Is it fixable?
     
    Its probably overridden in the plugin. You would have to edit the plugin itself to do it if thats the case. I don't use the Follow Pokemon plugin, so I can't give you a more definitive answer than that.
     
    Back
    Top