• 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!
  • 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.

Simple Bubble animation like Pkmn RSE

  • 22
    Posts
    11
    Years
    • Seen Nov 24, 2023
    [PokeCommunity.com] Simple Bubble animation like Pkmn RSE


    First add in Settings

    After the line
    Code:
    PLANT_SPARKLE_ANIMATION_ID   = 7

    Add:
    Code:
    BUBBLES_ANIMATION_ID         = 8# or  animation ID you'd like to use

    in PField_Field

    After the line
    Code:
    if PBTerrain.isJustGrass?(pbGetTerrainTag(event,true)) # Won't show if under bridge 
          $scene.spriteset.addUserAnimation(GRASS_ANIMATION_ID,event.x,event.y,true,1)

    Add:
    Code:
    elsif pbGetTerrainTag(event,true) == PBTerrain::UnderwaterGrass
              if event == $game_player
              $scene.spriteset.addUserAnimation(BUBBLES_ANIMATION_ID,event.x,event.y,true,2)
              end

    And this into the Graphics/Animations folder:
    Spoiler:


    Create an animation that uses 3 frames for each picture, totaling 24

    Example:
    [PokeCommunity.com] Simple Bubble animation like Pkmn RSE


    and that's it

    Note:
    the animation works only on the player's character
     
    Last edited:
    Hello!

    There is a problem with the script because we see the animation on every tile we browse.
    And I assure you, it's not beautiful to see.

    How can we solve this problem so that the animation is more similar to the game?

    Thank you in advance.
     
    Maybe just add a another condition so the animation appears at random?
    f.ex.
    Spoiler:
    Idk if that's how it's handled in the main games, but It'd make it more authentic.
     
    I managed to solve this problem, I already updated the code
     
    Back
    Top