How do I: Touch Release Jump

Get help using Construct 2

Post » Sun Jul 31, 2016 6:32 am

So I have my sprite dodging vertical objects on the Y axis but now I want the sprite to dodge objects on the X axis. So when touched I can move the sprite Left Right, but I want when (touched released) I want the sprite to jump. It is hard for me to find info on how this might work. I added a platform behavior that has jump when you push the spacebar but I want my sprite to jump when touch is released. Thank you in advance, Norman
B
19
S
10
G
1
Posts: 24
Reputation: 2,203

Post » Sun Jul 31, 2016 7:58 am

Perhaps you can use the "On any touch end" condition to do this.
B
54
S
24
G
18
Posts: 295
Reputation: 13,140

Post » Sun Jul 31, 2016 7:18 pm

Great, that is the start. Thank you. But now how can I make the sprite jump on "On any touch end", I mean can I set this to replace the space bar or do I need some type of animation... not sure..
B
19
S
10
G
1
Posts: 24
Reputation: 2,203

Post » Sun Jul 31, 2016 7:39 pm

Yeah just use it the same way as your current jump control.

On any touch end --> Player simulate jump
B
54
S
24
G
18
Posts: 295
Reputation: 13,140

Post » Sun Jul 31, 2016 7:46 pm

You Rock man! Thank you so much, this works perfect!
B
19
S
10
G
1
Posts: 24
Reputation: 2,203


Return to How do I....?

Who is online

Users browsing this forum: corpvs2 and 21 guests