omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. role

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    role

    @role

    0
    Reputation
    394
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    role Unfollow Follow

    Latest posts made by role

    • script measuring reaction time

      Hi all,

      I am trying to write a script to measure reaction time.

      It should show the 10 digits as buttons, then show a random digit and the user has to tap the same digit as fast as possible.

      Here are my initial thoughts:

      • "buttons": copy from one of the calculators
      • random number: take out of the example script
      • Show digit: got it
      • time to reaction...

      Here is where I got stuck...
      I was thinking of simple variables (starttime = time() ) and endtime = time()) to measure the elapsed time, but I don't know where to put it...

      I tired to put starttime in the setup for my scene and endtime in the touch_began, but it seems that they cannot share variables...

      any tips?

      Thanks,

      Roland

      posted in Pythonista
      role
      role