Fixing vertical scrolling

  • #1, by tall-story-gamesThursday, 06. August 2020, 22:35 4 years 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

    42 Posts


  • #2, by afrlmeFriday, 07. August 2020, 03:25 4 years 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}

    Imperator

    7278 Posts

  • #3, by tall-story-gamesFriday, 07. August 2020, 12:25 4 years ago
    Awesome, thank you. I'll give it a go smile

    Newbie

    42 Posts