How do I Create Touch Sensitivity

0 favourites
  • 5 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hello,

    I've created a game with two touch objects (let's say two drums) and a music background.

    When I touch the object it plays the sound....Fantastic !

    But I want to add sensitivity : soft/loud with touch compare.

    So I've tried to use the "compare speed" of the Touch, but I don't know how to set it.

    -What would be a normal touch speed ?

    -Can Speed be negative (Guess no, but who knows) ?

    -Can I compare more than two speed ? (if yes, how?)

    Finally,Is there a better way to create dynamics on Touch objects ?


  • Hi

    Your idea is quite interesting, although I don't know if it is possible. I don't know if devices now a day can sense the sensitivity of the touch.

    But I think that it's an awesome idea to give a try using the speed of the touch. So here we go.

    You can use a variable with initial value of 0, and every tick that the player is touching the screen you add some value to this var and then as soon as the player releases the screen you stop adding values.

    Try this, set some text objects for you to be able to check the speed of every touch, give it some tries, make some tests and you will find out the speed of the touch sooner or later.

    If the speed can be negative? Yes it can, when speed is negative it means the object is decelerating. But since you are measuring the amount of time that the user spends with his finger on the screen I don't think deceleration rules apply here.

    And yes you can compare more than two speeds, but you will need a different variable for each stored speed you want to compare.

  • Try this tutorial link below. Many tutorials here for you to learn ... 7YPza?dl=0

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you to both of you.

    I'll try the variables

    And wow....that's a lot of demos to dig in


  • tjfoo most well come

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)