• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Other Question] Is there a way to make a pokémon disappear when its using the move 'Fly'?

  • 8
    Posts
    4
    Years
    Hi👋🏼

    Is there a way to make your Pokémon disappear when it is using "Fly, Dig, Dive" or simular attacks?

    Like in the original Pokémon games?:
    [PokeCommunity.com] Is there a way to make a pokémon disappear when its using the move 'Fly'?

    In the scripts I found an animation for fainting where the Pokémon sprite moves down and its opacity to 0 %.
    But I have no idea how I could implement this for "Fly" when the Pokémon is in Charging turn.
     
    Hey,

    I got the same problem. In older versions of Essentials, Fly and such would hide the sprite of the Pokémon. In later versions, the functions were removed.
    I took the code from an old version of Essentials (could be v16.something), adapted it and it works. So, in the following, I am assuming that you are using v18.1.

    Paste this somewhere:
    Code:
    class PokeBattle_Scene
      def pbVanishSprite(pkmn)
        pkmnsprite=@sprites["pokemon_#{pkmn.index}"]
        pkmnsprite.visible = false
        pbUpdate    
      end
      def pbUnVanishSprite(pkmn)
        # @battle.pbCommonAnimation("Fade in",pkmn,nil) if fade
        pkmnsprite=@sprites["pokemon_#{pkmn.index}"]
        pkmnsprite.visible = true
        pbUpdate    
      end  
    end

    I pasted this just above the definition of:
    Code:
    class PokeBattle_TwoTurnMove < PokeBattle_Move
    because that's where I'm using it.

    Then, in this class PokeBattle_TwoTurnMove, find the function
    Code:
      def pbShowAnimation(id,user,targets,hitNum=0,showAnimation=true)
    and replace its code with:
    Code:
      def pbShowAnimation(id,user,targets,hitNum=0,showAnimation=true)
        hitNum = 1 if @chargingTurn && !@damagingTurn   # Charging anim
        super
        if ["0C9","0CA","0CB","0CC","0CD","0CE","14D"].include?(@function)
          @battle.scene.pbVanishSprite(user) if @chargingTurn
          @battle.scene.pbUnVanishSprite(user) if @damagingTurn
        end 
      end

    The thing is, the animation of Fly in the Gen 8 project is weird, because its charging turn ("Pokémon flew up high") has an animation that hits the target, without hitting it. But well, this is another topic.
     
    Hey,

    I got the same problem. In older versions of Essentials, Fly and such would hide the sprite of the Pokémon. In later versions, the functions were removed.
    I took the code from an old version of Essentials (could be v16.something), adapted it and it works. So, in the following, I am assuming that you are using v18.1.

    Spoiler:

    The thing is, the animation of Fly in the Gen 8 project is weird, because its charging turn ("Pokémon flew up high") has an animation that hits the target, without hitting it. But well, this is another topic.

    Thank you! It works!😊
     
    Back
    Top