Different actions based on the count of touch/

Get help using Construct 2

Post » Mon Mar 04, 2013 4:00 pm

I want to perform different actions based on the count of the touch/click. Can anyone help me out???

Thanks
B
2
Posts: 6
Reputation: 262

Post » Mon Mar 04, 2013 4:18 pm

What do you mean. Total of times there has been a touch
or
the number of touches are active on the screen

B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Mon Mar 04, 2013 4:24 pm

Suppose if he touches that object(can be any kind of button) the first time then my player shud jump, the second time he shud flip,etc
B
2
Posts: 6
Reputation: 262

Post » Mon Mar 04, 2013 4:59 pm

With a variable.

When Sprite is clicked and "variable" is 1, then Jump and add 1 to "variable"

When Sprite is clicked and "variable" is 2, then flip and add 1 to "variable"

..and then that goes on how much you want.
B
5
Posts: 55
Reputation: 585

Post » Tue Mar 05, 2013 2:25 am

I think this might do what I need it to for a "tap to continue" scenario in a tutorial...but I cant figure out how to set up the even sheet.

I have a sprite animation with 30 frames in it...that sprite animation is set to the full size of the layout and I am trying to get the on-touch to change the frame in the animation to the next one in the sequence.

So far all I have managed is for it to change to frame 2...then it takes off and runs through the entire sequence.

Can you articulate what the 1st few steps would be and I can finish the process by repeating it till the end of the layout?

Thanks!
B
11
S
2
Posts: 65
Reputation: 1,396


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests