how to limit received touch on screen?

I am wondering how can I limit the received touch from player.
Like the button can't be pressed more than 2 times.
How can i limit it to only able to be pressed 1 and 2 times?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    When Touch is Pressed AND attribute self.touchCount < 2
         Change Attribute self.touchCount to self.touchCount + 1

  • EpicoreGamesEpicoreGames Member Posts: 188

    ok thanks @tatiang

Sign In or Register to comment.