Disabling/enabling scene scrolling

  • #1, by MateuszTuesday, 23. January 2018, 03:37 6 years ago
    I was wondering - is there a way to completly disable scene scrolling ("scrolling of scene when cursor is at screen edge") for a moment and later re-enable it?

    Newbie

    59 Posts


  • #2, by afrlmeTuesday, 23. January 2018, 14:35 6 years ago
    You can enable/disable scene scroll with mouse cursor with a line of Lua script.
    Scenes["example"].SceneScrollOnEdges = true

    or a more global approach which will enable/disable it for the currently displayed scene...
    game.CurrentScene.SceneScrollOnEdges = true

    Replace true with false to disable scrolling.

    You can execute these lines of code inside of an execute a script action part.

    Imperator

    7278 Posts

  • #3, by MateuszTuesday, 23. January 2018, 21:09 6 years ago
    Thank you, works like charm.

    Newbie

    59 Posts