Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Shizane on September 09, 2020, 04:03:36 PM

Title: Tutorial on keeping score?
Post by: Shizane 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!
Title: Re: Tutorial on keeping score?
Post by: heavygunner on September 10, 2020, 03:43:28 PM
what exactly do you want ?
Title: Re: Tutorial on keeping score?
Post by: Shizane 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.
Title: Re: Tutorial on keeping score?
Post by: heavygunner 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 ?