When mouse(touch) is pressed 1,2 and 3 second change att.

Hi guy,

Im trying to figure out how to do a timed mouse press.

Example: When i mouse button is down for 3 seconds change an att.

How can i do this?

Any help is welcome :)

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    When mouse button is down
    --Timer: After 3 seconds
    ----Change attribute

  • n.ozmerd0570n.ozmerd0570 Member Posts: 5

    Hi socks ty for your answer :)

    But when i press mouse once does it change the att. after 3 seconds? i kinda need it to be that the mouse press need to be keep pressed 3 seconds to change the att. Im trying to do a 3 stage charge mode. like for example when press 1 sec. it change att. charge = 1 and the same for 2 and 3 seconds.

  • SocksSocks London, UK.Member Posts: 12,822
    edited September 2015

    @n.ozmerd0570 said:
    when i press mouse once does it change the att. after 3 seconds?

    What happened when you tried it ?

    (you can play around with 'run to completion' to control the behaviour).

  • n.ozmerd0570n.ozmerd0570 Member Posts: 5
    edited September 2015

    Well i can't put the timer before the "do" rule. So i couldnt try it out.

    or do i need to put it in the "do"?

    Edit: I need to put it in the do section. And it worked out btw, it changes the att. if i press it for 3 seconds. this is perfect :) Ty again Socks

  • SocksSocks London, UK.Member Posts: 12,822

    @n.ozmerd0570 said:
    it worked

    Good ! :smile:

Sign In or Register to comment.