No announcement yet.

Change value by scrolling

  • Filter
  • Time
  • Show
Clear All
new posts

    Change value by scrolling

    Hi guys,

    I want to change a value by scrolling up and down. I want to change the weapon by changing the integer value. I wanted to know how to change the value by scrolling down and up. Scrolling up: The value increase (from 0 to 1 then from 1 to 2 and so on max until 3), Scrolling down: (from 3 to 2 then from 2 to 1 and so on max until 1. How do I do that?

    Here a screen:

    Click image for larger version

Name:	ChangeWeapon.PNG
Views:	1
Size:	94.2 KB
ID:	1212671

    on wheel up make it +1 and use clamp node to set it between 0 and 3. Do the same with wheel down but make it -1.


      It doesnt really work. Just with clamp or is something missing. Mouse Wheel Up -> Clamp->Plus 1 ->Set Change Weapon

      It works now. Thank you!
      Last edited by Glypton; 03-07-2017, 04:11 PM.