hold button

BeanstineBeanstine Member Posts: 101
edited November -1 in Working with GS (Mac)
How do i make it to where if i hold a button for X sec. something will happen??

Comments

  • FloridaGamesFloridaGames Member Posts: 328
    Make an attribute self or game. give you actor this rule:

    when actor recieves event touch - pressed:
    every 1 sec -
    change attribute to attribute + 1.

    when actor recieves event touch - released"
    change attribute to 0.

    If attribute = (how long you want to hold down)
    then do what you what to happen.
Sign In or Register to comment.