How to code game score?


#1

Hey, I’m making a game and I need to know how to code a game score, basically when something’s touching something they get one point. How would I code that?


#2

Game starts

  • set [:iphone: variable] to 0

When _ is touching _

  • increase [:iphone:variable] by 1

When 7=7

  • set text [:iphone:variable]

#3

Thank you so much @sophia71205!


#4

The code by @sophia71205 is what you need.