How do I Create Touch Sensitivity

Get help using Construct 2

Post » Sat Jun 06, 2015 5:57 am

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 ?

Thanks
B
4
Posts: 17
Reputation: 228

Post » Sat Jun 06, 2015 6:59 am

Hi :D
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.
B
17
S
7
Posts: 277
Reputation: 2,514

Post » Sat Jun 06, 2015 2:43 pm

Try this tutorial link below. Many tutorials here for you to learn

https://www.dropbox.com/sh/eioscti86bpr ... 7YPza?dl=0
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Sat Jun 06, 2015 3:58 pm

Thank you to both of you.

I'll try the variables
And wow....that's a lot of demos to dig in

Thanks
B
4
Posts: 17
Reputation: 228



Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 17 guests

cron