License from €75 Log in
DE EN FR ES IT CZ

Scroll Menu when Mouse at Edge

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 years ago
    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. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 10 years ago
    Ok i think i found smth:

    GameCursorHorizontalScrollDistance 
    GameCursorVerticalScrollDistance

    will check this first
  4. · 10 years ago
    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.

  5. · 10 years ago
    That's correct, thanks mate smile

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?