Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Fixing vertical scrolling

  • #1, by tall-story-games 5 years ago Zitieren
    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!
  • #2, by afrlme 5 years ago Zitieren
    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}
  • #3, by tall-story-games 5 years ago Zitieren
    Awesome, thank you. I'll give it a go smile