On Touch Released?...

Discussion and feedback on Construct 2

Post » Fri Nov 18, 2011 2:12 pm

Hi Construct 2 Designers and Developers!

I'm new to the Construct 2 engine so I have a question regarding touch functionality.

Is there a "On Touch Released" function or something similar I could use to activate an animation on button release? You have on keyboard release, I think it would be good to have this functionality added to the engine.

Regards

Rich
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Nov 18, 2011 2:36 pm

With the Touch object, condition "On touch end".
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Nov 18, 2011 2:42 pm

Hi Kyatric,

I've tried that and it doesn't seem to work.

I have "Touch" --> "On Touch End" --> "Button" --> "Set Animation To"
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Nov 18, 2011 3:01 pm

It should work correctly, @2Bdigital could you post your .capx file?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Nov 18, 2011 3:19 pm

Hi Ashley,

I can't I'm afraid as this is a client project.

B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Nov 18, 2011 3:42 pm

'On touch end' should be working correctly though, the next best thing is to reproduce the problem in a new empty project and share that. If you can't, then it suggests it's a problem in your events, not in Construct 2.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Nov 18, 2011 4:20 pm

Its working fine now!

It was placed wrong in the event sequence.
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Oct 09, 2015 5:36 pm

Hey I have the new construct and it doesnt have an on touch end. it has an on any touch end, but thats not what im looking for. I have the same problem as this developer please help me
B
5
Posts: 43
Reputation: 295

Post » Thu Oct 15, 2015 1:04 pm

Message: ankushtaneja is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Hello Everyone,

How are you?
I also am facing the same problem i am not able to find " touch end ". Please help.Thanks
Ankush Taneja
B
3
Posts: 1
Reputation: 177

Post » Thu Oct 15, 2015 11:37 pm

@rinesjoseph and @ankushtaneja

The easiest way to do it is to only handle one touch at a time - and use the On Nth touch Start, Has Nth touch, and On Nth touch End.

Use N=0 (zero), so you will have events for On touch 0 Start, Has touch 0, and On touch 0 End. Your game will ignore 2nd, 3rd or more simultaneous touches, but at least it will work. The vast majority of the time, for a simple game, people will only try to use one touch at a time anyway.

If you want to properly handle multi-touch, you use On any touch Start, Is in touch, and On any touch End. But then you have to use touchID to tell the various active touches apart. Use Touch.XforID and Touch.YforID to track where the touches are going. And then On any touch End you check the touchID to see which of the touches has ended, and process accordingly.

I would start with the single touch method until you have a good handle on how it all works, and only add multi touch support if you really need it.
B
52
S
16
G
10
Posts: 342
Reputation: 9,569

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests