Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Rabagast on July 14, 2014, 06:59:38 PM
-
Hi!
When I pick up one coin, I get 1 point. The next coin give me 2 point, and then 4 point, 8, points, 16 points, etc. Understand? So it double the score every time I pick up a new coin, but if I miss one coin, I need to start over again. Any ideas how I can do this?
-
Hi,
How do you know the user missed a coin?
Bye,
Jean
-
Hi, Jean!
I use a trigger. But I made it.
This is what I did:
As you can see in the Screenshot, every time I pick up a coin, I add one to an Int Variable I call "Double The Score" And then I use this variable to add to the score.
If I miss one coin, I have a trigger right behind the player, so if a coin collide with this trigger, It reset the variable "Double The Score" back to 1. And it start over again. :-)