Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Scripts
  3. [Helper]How to add Animation in your Arraylist.kt

[Helper]How to add Animation in your Arraylist.kt

Scheduled Pinned Locked Moved Scripts
17 Posts 10 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • GkingG Offline
    GkingG Offline
    Gking
    wrote on last edited by
    #1

    First,you need to add a utils

    package net.ccbluex.liquidbounce.utils;
    
    import net.ccbluex.liquidbounce.ui.client.clickgui.AnimationUtil;
    
    public final class Translate {
        private float x;
        private float y;
    
        public Translate(float x, float y) {
            this.x = x;
            this.y = y;
        }
    
        public final void interpolate(float targetX, float targetY, double smoothing) {
            this.x = (float) AnimationUtil.animate(targetX, this.x, smoothing);
            this.y = (float) AnimationUtil.animate(targetY, this.y, smoothing);
        }
    
        public float getX() {
            return this.x;
        }
    
        public void setX(float x) {
            this.x = x;
        }
    
        public float getY() {
            return this.y;
        }
    
        public void setY(float y) {
            this.y = y;
        }
    }
    
    
    

    then you should add this in your Module.kt

        val translate = Translate(0f,0f)
    

    After that you should add this in your Arraylist.kt

                if (module.state) {
                    if (module.slide < width) {
                          module.translate.interpolate(xPos, yPos, 0.2)
                    }
                } else if (!module.state) {
                    module.translate.interpolate(xPos, -20f, 0.2)
                }
    

    And change all "yPos" to "module.translate.getY()"

    It's skidded from "Autumn"

    exit scammedE I some oneS Jacrafter 0J 4 Replies Last reply
    0
    • exit scammedE Offline
      exit scammedE Offline
      exit scammed
      replied to Gking on last edited by
      #2

      @gking hah autumn I have it

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        me and the bois with da AnimationUtil.animate

        1 Reply Last reply
        1
        • I Offline
          I Offline
          idk my name
          replied to Gking on last edited by
          #4

          me and da animationutil

          1 Reply Last reply
          0
          • some oneS Offline
            some oneS Offline
            some one
            replied to Gking on last edited by
            #5

            @gking where is Arraylist.kt I cant find it

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Aftery
              wrote on last edited by
              #6

              nice spoonfeed bro i didnt know translate existed

              ? 1 Reply Last reply
              0
              • M Offline
                M Offline
                mems Moderator
                wrote on last edited by
                #7

                @Gking, has no one taught you how to make a proper explanation regarding code? Seriously, by saying here a util and here copy this they learn literally nothing, unless that's your goal then okay.

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  replied to Aftery on last edited by
                  #8

                  what does translate mean???????

                  O 1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    ohno
                    replied to A Former User on last edited by
                    #9

                    @hahayes use google translate to translate what does translate mean so you will see translated message and will understand what does translate mean

                    ? 1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      replied to ohno on last edited by
                      #10

                      @ohno what language

                      O 1 Reply Last reply
                      0
                      • O Offline
                        O Offline
                        ohno
                        replied to A Former User on last edited by
                        #11

                        @hahayes 日本

                        ? A 2 Replies Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          replied to ohno on last edited by
                          #12

                          @ohno said in [Helper]How to add Animation in your Arraylist.kt:

                          日本

                          enchanting table language isn't an option weary

                          O 1 Reply Last reply
                          0
                          • O Offline
                            O Offline
                            ohno
                            replied to A Former User on last edited by
                            #13

                            @hahayes mc.standardGalacticFontRenderer

                            ? 1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              replied to ohno on last edited by
                              #14

                              @ohno yes.

                              1 Reply Last reply
                              0
                              • Jacrafter 0J Offline
                                Jacrafter 0J Offline
                                Jacrafter 0
                                replied to Gking on last edited by
                                #15

                                @gking how can I start to code my own Liquidbounce ?

                                M 1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mems Moderator
                                  replied to Jacrafter 0 on last edited by
                                  #16

                                  @jacrafter-0 by learning how to code.

                                  1 Reply Last reply
                                  1
                                  • A Offline
                                    A Offline
                                    Aftery
                                    replied to ohno on last edited by
                                    #17

                                    @ohno u misspelled 中文

                                    1 Reply Last reply
                                    1

                                    About
                                    • Terms of Service
                                    • Privacy Policy
                                    • Status
                                    • Contact Us
                                    Downloads
                                    • Releases
                                    • Source code
                                    • License
                                    Docs
                                    • Tutorials
                                    • CustomHUD
                                    • AutoSettings
                                    • ScriptAPI
                                    Community
                                    • Forum
                                    • Guilded
                                    • YouTube
                                    • Twitter
                                    • D.Tube
                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups