Using a Counter to keep track of items collected
Here's where I'm at:
I have four items that players need to collect. Each item is connected to a Trigger Zone. The player enters the Trigger Zone, the item is destroyed and a sound is played. So far, so good. Next, each item is connected to a single Counter, and that Counter is connected to a Number Displayer so that players can see their progress. Should be easy enough. My problem stems from the Counter counting up in a strange fashion. For example, why does setting Target Value to "4" make each item collected worth 0.25 points? I'd like each item to be worth a single point. Get four points and the player wins the level.
What am I missing here?
-
Hi,
The output your measuring is always a number between 0 and 1.
1 being fully count up, 0 at the start.
So it makes sense that if it's set to 4 that 1 divided by 4 is 0.25.
What you need to do is take the output out of the top tweak called current amount.
John -
I admit, I have fallen prey to this mistake more than once.
-
Ah, I understand. It's like binary. On and off.
請登入寫評論。