• 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 Trading Card Game 2 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.

[Scripting Question] [v19.1] How can I change HP bars speed animation?

  • 17
    Posts
    7
    Years
    Hello, everyone

    I've been using EBDX, which works great, but the HP bars animation is too fast in my opinion, is there a way I can configure this? I think I might be able to change it in the AnimationCore.rb file but I'm not sure where.

    Thanks :)
     
    Hey there,

    From what I have tested, looks like its in
    .\Plugins\Elite Battle DX\[000] Scripts\Battle UI\UI Data Boxes.rb

    Check the next part, it`s the line #454:
    Code:
    def update
        return if self.disposed?
        # updates the HP increase/decrease animation
        if @animatingHP
          if @currenthp < @endhp
            @currenthp += (@endhp - @currenthp)/10.0.delta_add(false)
            @currenthp = @currenthp.ceil
            @currenthp = @endhp if @currenthp > @endhp
          elsif @currenthp > @endhp
            @currenthp -= (@currenthp - @endhp)/10.0.delta_add(false)
            @currenthp = @currenthp.floor
            @currenthp = @endhp if @currenthp < @endhp
          end
          self.updateHpBar
          @animatingHP = false if @currenthp == @endhp
        end

    Specifically:

    Code:
    @currenthp += (@endhp - @currenthp)/10.0.delta_add(false)
    and
    Code:
    @currenthp -= (@currenthp - @endhp)/10.0.delta_add(false)
     
    Back
    Top