Smooth scrolling / panning

  • #20, by ke4Tuesday, 09. September 2014, 11:26 8 years ago
    You can create a new cursor, which is same looking but doesn't have active image and change to this cursor on hover.

    Key Killer

    810 Posts


  • #21, by AkcayKaraazmakTuesday, 09. September 2014, 11:38 8 years ago
    But then how can I use the main cursor in scene?

    Great Poster

    440 Posts

  • #22, by ke4Tuesday, 09. September 2014, 11:52 8 years ago
    You just change the cursor back to the main if your mouse left the area, and put this object to the bottom, under the other objects. But, then the panning wont work if you hover some object which is on the edge of the screen.

    Key Killer

    810 Posts

  • #23, by AkcayKaraazmakTuesday, 09. September 2014, 12:05 8 years ago
    Hmmm I gonna check it mate, but I think it should work how you said.

    Great Poster

    440 Posts

  • #24, by SDMonoTuesday, 09. September 2014, 15:37 8 years ago
    @Akçay Karaazmak: You are welcome... happy it helped. smile

    There has to be another solution for the mouse scroll option. I will try a few things during the day. If I find something I let you know.

    Forum Fan

    148 Posts

  • #25, by SDMonoTuesday, 09. September 2014, 20:27 8 years ago
    Ok no luck so far. I have no idea if it's possible to kill the tween ones it's done scrolling. I believe because it keeps on working even after it's done scolling it's messing with the mouse scroll. confuse

    Forum Fan

    148 Posts

  • #26, by afrlmeTuesday, 09. September 2014, 20:38 8 years ago
    startObjectTween should unregister after the delay value has ended. I haven't gotten round to checking out the .ved you uploaded yet, so I have no idea what it is you are doing...

    I don't think need to create a scene object to do mouse scrolling. With lua I believe you could just get current scroll position & then check the current mouse position against 4 values based on game resolution value.

    I can more or less think of how it could be scripted but I'm a bit busy at the minute... wink

    Imperator

    7178 Posts

  • #27, by SDMonoTuesday, 09. September 2014, 20:50 8 years ago
    Ok, Lee... please check it out if you have a min. because I am not able to get behind it and it's driving me insane!!! hehehe

    Forum Fan

    148 Posts