Menu
Login
Language
DE EN FR ES IT CZ
Back

Fixing vertical scrolling

  • #1, by tall-story-games Thursday, 06. August 2020, 22:35 5 years ago Quote
    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 afrlme Friday, 07. August 2020, 03:25 5 years ago Quote
    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

    7290 Posts

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

    Newbie

    42 Posts