Subtracting / Resetting Score

i am a complete novice and just finished “Chapter 1 — Creating an App”

in moving halfway onto the next chapter i discovered that my main question from chapter 1 was not answered.

How can i make the score reset when the balloon touches the platform?

i can see how we could make the score reset if lives = 0 in chapter 2 but how could we make the score reset if balloon touches the platform? 

this seems simple and mediocre compared to whats possible but i am most curios about how something like this would work.

What you need to do is set up a collision listener that will handle any collisions, in this case between the balloon and the floor.

Reading the API should shed some light on it for you…

https://docs.coronalabs.com/guide/physics/collisionDetection/index.html#local-collision-handling

Chapter 3 covers collision handling and explains it well.  You could wait until you get to that point and then go back with your new knowledge and make the changes you want to your chapter 1 code, or try it yourself first after reading the API docs.  Personally, I get a much better feeling of satisfaction when I’ve figured something out myself. 

It is simple, but then we all had to start somewhere and it’s good that you’re working through the tutorials and not just expecting to be able to jump straight in and make the next million seller.

Good luck and welcome to the forums.

(-‸ლ)   Should have kept reading… i become anxious once what i already tried wasn’t working. i basically added the if then statement without a listener and without the few other key pieces i would need(began,ended) which obviously would never work XD that’s what i get for getting ahead of myself. 

Thank you Very Much!