How do I convert a current time into a score?
I'm trying to have the time when a button is pressed converted into a score. Currently I have:
Timer [Current Time] into Calculator [Multiplier, B is -1 or 1] into Score Modifier [Add].
I set up a number displayer to confirm the current time, but the scores coming out don't hit as expected until the timer completes.
Timer [Current Time] into Score Modifier [Add] works fine, so it seems I'm not understanding the Calculator in some way.
-
I think the easiest way to do time within a single level is to place a timer. Set the target time to really high then wire the current time slider directly into a set score.
Post current score with the button press.
Visualise the time by wiring the same currnt time slider into a number gadget. Give the number gadget some decimal places or even set to display in milliseconds if that’s appropriate.
If you want to track a single time over multiple levels you can but that’s a bit more involved. You need to use variable gadgets to store the time between levels. Posting the final time in the last level. You may also want to change the way you measure time. E.g. count time in frames (30 per second in logic)
K -
What I'm currently trying to do is have a time frame (like 10 seconds) where a button press is punished with a negative score. That's why I was trying to use the calculator to take the current time in that "no press period", make it negative, then add to the current score. Is this not possible or only workable as your last suggestion of counting in frames?
Can the calculator not read actively running timers?
댓글을 남기려면 로그인하세요.