주 콘텐츠로 건너뛰기

검색

How do I convert a current time into a score?

  • Mm QA Team

    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

  • Riandisa

    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?

댓글을 남기려면 로그인하세요.