playMaker

Author Topic: Coin Collecting Counter  (Read 2487 times)

mrstupes

  • Playmaker Newbie
  • *
  • Posts: 7
Coin Collecting Counter
« on: December 27, 2013, 05:10:58 AM »
Hello,

I am new to playmaker still so this is probably a basic question I need some help with.
I basically want a counter in the level to counts up a number, whenever the Player collides with the Coin and Collects it.

Then I would want the amount of coins collected in a Level, to be added to a total counter of the amount of coins collected throughout the entire game. Similar to New Super mario bros 2 coin mechanic or a highscore.

Just any advice on how to approach it would be helpful.

Thank you in advance for any help.

Metapoch

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Coin Collecting Counter
« Reply #1 on: December 28, 2013, 05:37:08 PM »
Hi mrstupes,

I was looking into this as well and found this answer:
http://answers.unity3d.com/questions/13130/scene-to-scene-variables.html

Playmaker has both actions available, so you would either set the float (or configure the coin collector object to DontDestroyOnLoad) before changing scenes.

Hope this helps