• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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?

  • 413
    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