How I get "on Release" But in especific Touch Button?

Get help using Construct 2

Post » Mon Jun 13, 2016 8:53 pm

Where can I find "On Release" in a Touch Botton?

It is not any button...!
I want the event to happen when I stop touching an object in specific.

I would like to know where I can find the event : "On Release touch" or similar to "On release" on the keyboard object.

Please sendme a Screen Capture.
B
48
S
9
G
10
Posts: 200
Reputation: 8,263

Post » Mon Jun 13, 2016 9:42 pm

The easy way to handle multitouch. Just accept that there is a accessible list of touches.
A list you handle the same way as every list.

https://www.dropbox.com/s/875fodjn39q03 ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jun 13, 2016 9:49 pm

Thanks!!!
But, which means: loopindex("i")

Can you explain me?
B
48
S
9
G
10
Posts: 200
Reputation: 8,263

Post » Mon Jun 13, 2016 9:59 pm

System > For (loop)
Repeat the event a number of times, using an index variable over a range of values. The index can be retrieved with the LoopIndex system expression and passing the name of the loop.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jun 13, 2016 10:05 pm

Thanks you.!
B
48
S
9
G
10
Posts: 200
Reputation: 8,263

Post » Mon Jun 13, 2016 10:18 pm

Thinking it trough. Even better would be ...

End index should be max(0,Touch.TouchCount - 1)
To not allow the loop to count from zero to - 1. This is only to have it even more performant. Not dooing this will not create an error.

Also, you have to decide if a 3th touch is allowed.
If not, you need to add a system > compare 2 values > Touch.TouchCount <= 2.

Touch.TouchCount is the expression that returns the amount of touches on the screen.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Jun 15, 2016 4:38 pm

i dont understand, can you upload a .capx file?
B
48
S
9
G
10
Posts: 200
Reputation: 8,263


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, maranpis, missile, oosyrag, Yahoo [Bot] and 31 guests