Fixing vertical scrolling

  • #1, by tom-hardwidgeThursday, 06. August, 22:35 A month ago

    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!


    19 Posts

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


    6842 Posts

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


    19 Posts

Write post