How to Score when mouse is pressed or screen is touched?

Dell7730Dell7730 Member, PRO Posts: 388

I would like to get (set) points per (determined amount of length of time like for ex: 5 seconds or 10 seconds) while screen is touched or pressed upon.

I would like to get earn points for the length of time I stay on pressed, ON CONTACT with the screen (on touchscreens) or within the game area on computer.

Best Answer

Answers

  • Dell7730Dell7730 Member, PRO Posts: 388

    @tatiang said:
    When Mouse Button is Down
    .....Timer every 0.1 seconds
    ..........Change attribute game.score to game.score+1.

    literally figured it out a couple of seconds before you responded hahaha, thanks!

Sign In or Register to comment.