playMaker

Author Topic: Help with my score system[Solved]  (Read 1515 times)

jgalvezpa

  • Junior Playmaker
  • **
  • Posts: 58
Help with my score system[Solved]
« on: November 05, 2013, 02:01:22 AM »
Hi my game is connecting balloons from the same color, my problem is that everytime the user touch a balloon even the same balloon multiple time the score updates, i dont want, i only want to update the score when the balloons for example the user connect 3 then release finger update score to 3 balloons, no everything a balloon is touched.
« Last Edit: November 05, 2013, 10:06:32 PM by jgalvezpa »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help with my score system
« Reply #1 on: November 05, 2013, 02:16:11 AM »
Hi,

 you'll need to implement that logic for each ballon:

typically, maintain a boolean flag, so that if the user touch twice a ballon, the second you know it's been touched already and don't do anything.

 Does that make sense?

bye,

 Jean