HISE Logo Forum
    • Categories
    • Register
    • Login

    Four frames Sheet for button

    Scheduled Pinned Locked Moved General Questions
    5 Posts 4 Posters 73 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      theovintagesynth
      last edited by

      Hello everybody. I'm trying to achieve a button which will display a 4-frames sprite sheet. 2 frames for its different states (on/off) and 2 others to show the action between those 2 states when the mouse is down (left clic pressed, before being released and activate the next state). Is there someone who have any idea how to achieve it ? I've already seen a lot of ressources about it but nothing enough concret to display it in my UI. Thanks by advance.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @theovintagesynth
        last edited by

        @theovintagesynth

        I think this is the default behaviour if you load an image with 6 equally spaced frames into a button. If you use six frames you'll also get mouse down states.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        dannytaurusD 1 Reply Last reply Reply Quote 0
        • T
          theovintagesynth
          last edited by

          Thank you David, that's it !

          1 Reply Last reply Reply Quote 0
          • dannytaurusD
            dannytaurus @d.healey
            last edited by

            @d-healey Is there any documentation for the six frame method?

            Meat Beats: https://meatbeats.com
            Klippr Video: https://klippr.video

            ChazroxC 1 Reply Last reply Reply Quote 0
            • ChazroxC
              Chazrox @dannytaurus
              last edited by Chazrox

              @dannytaurus

              Make a 6 frame vertical sprite sheet. You're art should mirror these states.

              Six State Button Example.png

              Now just create a button in HISE and choose your filmstrip in the property editor, enter your amount of frames (6) also in the property editor. That should be it.

              This is an example of a button I did. I have spaces in between my images compensating for the shadows and highlights but they are evenly spaced. You can design your states to suit your wants/needs.

              Screenshot 2025-06-28 at 2.31.32 AM.png

              Hope that helps! 🙏

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              24

              Online

              1.8k

              Users

              12.0k

              Topics

              104.5k

              Posts