toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
hold button
Beanstine
Member
Posts:
101
September 2011
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
FloridaGames
Member
Posts:
328
September 2011
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.
Comments
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.