playMaker

Author Topic: Tutorial on keeping score?  (Read 741 times)

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Tutorial on keeping score?
« on: September 09, 2020, 04:03:36 PM »
Hi,

I’m looking for a tutorial on creating a simple system for keeping track of an action then displaying a result.

Example:

If player collides with 10 objects (and display it) then do something.

Basically I guess I just need to know how to keep a score then if it reaches a number then do something...

Thanks!
« Last Edit: September 09, 2020, 04:06:57 PM by Shizane »

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Tutorial on keeping score?
« Reply #1 on: September 10, 2020, 03:43:28 PM »
what exactly do you want ?

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: Tutorial on keeping score?
« Reply #2 on: September 10, 2020, 06:21:09 PM »
I think that explained it...

A system for keeping track of integers and displaying them. A score system of sorts.

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Tutorial on keeping score?
« Reply #3 on: September 12, 2020, 03:00:45 PM »
Have a common integer called "score"
use Int Add action every time you destroy cubes. Define how much you want to add to score.

Use Playerprefs set int to save that score.
Is there anything u want ?