tallhippie's Forum Posts

  • 2 posts
  • You can limit the slider's position with the clamp expression with the height of the slider and the height of the slider's slot. Actually scrolling an area depends on the height of the scrollbox height and the height of the area inside it. Masking it requires some blend mode juggling.

    frame: destination-out
    spritefont: detination-over
    slot: normal
    slider: normal
    frameOverlay: destination-over

    Then events could look like this:

    You'd just need to update the height of the spritefont if you added more lines.

    c3p example here:

    https://www.dropbox.com/scl/fi/ela3v0bemybwdwzamyows/scrollbox.c3p?rlkey=gu36fu04nv6bxxd76c3mhb2vx&st=q40whz10

    The amount of vertical scrolling is semi arbitrary, but you could calculate it to only be a few lines at a time instead of a percentage.

    OH ME-OWWWW~!!! THANK YOU SO MUCH! Duh! You have saved me from thinking too hard, thank you so kindly.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi there! Long time lurker, first time poster.

    I'm trying to make a slider (Sprite A) move within the given limits of a scrollbar (Sprite B) move relative to a number. Basically a custom scrollbar using sprites. I also want to make it so that the movement coincides with how much text the player is scrolling through. The slider doesn't have to change size, or shape, I just want it to be able to slide through the text easily no matter how much text there is. I'm sure this is simple to figure out, I just lack the knowledge and expertise.

    I can scroll up and down inside of the content just fine with my mousewheel- I just want the slider to be able to adjust to the amount of text you're scrolling through AND move relative to the text's positioning.

    And here's my project file, if you wanted to take a look at what I had thus far to see my work. I have been trying to figure this out for days and it's bugging me lol thanks in advance

    https://www.dropbox.com/scl/fi/me59ctit6hqg2u35kha62/laby0.0.0.0.c3p?rlkey=nqiltrce0xzces9jty12yw437&st=v6uig96n&dl=0

  • 2 posts