playMaker

Author Topic: How to create a counter for how many items have been clicked?  (Read 1826 times)

LIAMODEARME

  • Playmaker Newbie
  • *
  • Posts: 1
    • Youtube/LIAMODEARME
Hey everyone,

I'm trying to make a very simple game where users spot the difference between two 3D sets.

So far I have set up a system where if a user finds a difference in the 3D scene they can click the object and it will change to look like the second set.

I would now like to make a system where it counts how many objects have been found and changed. So for instance

When 8 objects clicked > game end

And there would be a counter displaying how many have been found. I have looked all over the net for some tutorial that would point me in the right direction but I can't seem to piece anything together.

Could anyone point me in the direction of what actions to use? Or maybe a tutorial or thread that has already been made on this topic?

xoxo

Liam
« Last Edit: June 13, 2016, 05:08:22 AM by LIAMODEARME »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How to create a counter for how many items have been clicked?
« Reply #1 on: June 13, 2016, 12:43:23 PM »
Hi,
you can use an int variable and the action "int add"
to add when an object is clicked and use "int Compare" to see if it has reached the wanted value

i would suggest that you also look to some of the tutorials here to get more familiar with playmaker