GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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

Dell7730Dell7730 Posts: 388Member, PRO

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 Posts: 388Member, PRO

    @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.