How do I stop animation when not touching

Get help using Construct 2

Post » Mon Nov 16, 2015 5:14 pm

Hello again :)

Today I need to ask,how can I stop animation when the object is not touching.

For example:

When I touching object sprite animate (Event Start animation from current frame), but when I stop touching object I want to stop animate. How can I do this, by which event?

Thanks!
B
4
Posts: 19
Reputation: 234

Post » Mon Nov 16, 2015 5:19 pm

Adding an else event would probably do it in this case..

Also you can invert the is touching condition, or use an on touch end event..
It's up to you to choose the one best suited..
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 » Mon Nov 16, 2015 5:36 pm

@LittleStain Thank you, the only solution is to set event On any touch end -> Sprite Stop Animation it is a good solution? Because, I cannot see something like On touch object stop...

How to add ELSE? I try to add another condition to First, but I cannot see it at System

Thanks!
B
4
Posts: 19
Reputation: 234

Post » Mon Nov 16, 2015 5:53 pm

You could add another condition to the "any touch end" event, like "touch is touching object"...

Right click - add else, for the else event..
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 » Mon Nov 16, 2015 5:59 pm

@LittleStain

1.) Thanks I' ll try it
2.) On touch conditions is Else disabled.
B
4
Posts: 19
Reputation: 234

Post » Mon Nov 16, 2015 6:17 pm

Majox wrote:@LittleStain

1.) Thanks I' ll try it
2.) On touch conditions is Else disabled.


Your first post had me believing you were using "is touching", else would have worked fo that..
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 » Mon Nov 16, 2015 11:56 pm

@LittleStain Thanks for help :)
B
4
Posts: 19
Reputation: 234


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests