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

Scroll Menu when Mouse at Edge

  • #1, by dionous 9 years ago Zitieren
    Hello all,

    I have a menu scene that scrolls when the mouse is at the edge. Would it be possible to adjust the scroll area away from the edge which will trigger the scroll? I.e. to trigger the scroll not at the edge but when mouse is at x (or y) pixels away from the edge?

    Thanks!
  • #2, by dionous 9 years ago Zitieren
    Ok i think i found smth:

    GameCursorHorizontalScrollDistance 
    GameCursorVerticalScrollDistance

    will check this first
  • #3, by afrlme 9 years ago Zitieren
    Ok i think i found smth:

    GameCursorHorizontalScrollDistance 
    GameCursorVerticalScrollDistance

    will check this first
    Yes, those are the correct data structure fields for doing what you are asking...
    game.CursorHorizontalScrollDistance = 200
    game.CursorVerticalScrollDistance = 200

    Take in mind that it is the same distance from both sides. If you set 200 to horizontal scroll distance, then it's 200px from both the left & right side of the screen edge.

  • #4, by dionous 9 years ago Zitieren
    That's correct, thanks mate smile