Fixing vertical scrolling

  • #1, by tom-hardwidgeThursday, 06. August, 22:35 4 months ago
    Hi,

    I have a small issue where a character walks down from the top floor to the lower floor, at which point I'd like the vertical scrolling to be fixed until they go back up the stairs again.

    There is an action to go upstairs and downstairs, so I don't need to use the character's position to switch this on/off necessarily. I've tried tweaking a few different properties like GameScrollDirectionVertical and GameScrollPosition but I'm having no luck.

    It's not a deal-breaker, but it's annoying me that I can't figure it out!

    Newbie

    31 Posts


  • #2, by afrlmeFriday, 07. August, 03:25 4 months ago
    A'llo, you can specify the current scrollable area of the current scene using this line of code.
    game.CurrentScene.ScrollableArea = {0, 0, 1920, 1080} -- {x, y, width, height}
    1

    Imperator

    6862 Posts

  • #3, by tom-hardwidgeFriday, 07. August, 12:25 4 months ago
    Awesome, thank you. I'll give it a go smile

    Newbie

    31 Posts

Write post