Best way to tap multiple times to destroy?
jigglybean
Member Posts: 1,584
Hey all
I am looking for the best way to make the following happen. I have had a little play around but still struggling to make it work properly
Essentially I want the user to tap an object 5 times, then destroy the actor.
Any ideas? thanks in advance
I am looking for the best way to make the following happen. I have had a little play around but still struggling to make it work properly
Essentially I want the user to tap an object 5 times, then destroy the actor.
Any ideas? thanks in advance
Like Balls? Then click here! We've 100 coming soon
Comments
Use the "Rule:Actor receives event Touch is released" to increment an Attribute and prevent it from adding multiple times while the object is beeing pressed.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
create a local attribute on the actor called count
when touch is pressed count = count +1 when count >= 5 destroy actor
the reason I put count >= 5 is if they hit the actor too quick it could jump from 4 to 6 and miss the value of 5.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Like Balls? Then click here! We've 100 coming soon