How do I TOUCH RELEASE

Get help using Construct 2

Post » Sun Nov 02, 2014 5:54 pm

i have a button that has a action once its released... i am going in and adding touch controls.. i cant find a way to have..when touch (sprite) is released .......
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Sun Nov 02, 2014 5:55 pm

Try to use Touch-is touching object, and invert it.
Or use Touch-is in touch, and invert it. ;)
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Mon Nov 03, 2014 3:14 am

Two conditions/triggers in on line:

-> On any touch end
is touching (object)

^ should do it (providing you're not using multi-touch).
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,241
Reputation: 45,956

Post » Mon Nov 03, 2014 3:07 pm

i have the usual, left,right , jump, shoot,.....if i have things going on like animation stoping for instance when
i release Left....as well as for the right..? basically if i have more than one action going on for several buttons...how would it know what to end which it does not let me specify a object.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Nov 03, 2014 4:16 pm

If you are using multi-touch you should specify which touch instance is touching which object and on touch end check both object and touch instance to make sure the right event is triggered..
Although if the other touch instances should overwrite the on touch end, this shouldn't be a problem..

If the subevent (or second condition) of on any touch end is an is touching object - the object is specified..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 04, 2014 4:42 am

not sure how to do that... the issue is around line 175...treeclimber....

what happens when i use the keyboard control's is this: while on top of branch and i press and release the down arrow key, the sprite will flip and gravity is zero...

with this touch control set up, it like skips and goes straight to the squirrel hang...not sure what to do..

https://www.dropbox.com/s/v6ivhzgv79da7 ... .capx?dl=0
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Fri Nov 07, 2014 1:53 am

any help?
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Fri Nov 07, 2014 3:35 am

im figuring it out.haha, it takes a little patience.
B
9
S
2
Posts: 272
Reputation: 1,632


Return to How do I....?

Who is online

Users browsing this forum: kainrazial and 6 guests