platform gravity not working with touch gesture

Get help using Construct 2

Post » Sat Aug 20, 2016 4:22 pm

I have my player sprite set up to where it moves via arrow controls on the keyboard and it works as designed. I have added touch gesture to an up arrow which does some same thing as the up arrow. The touch gesture fires, but the platform behavior does nothing. Any ideas why? Thanks.

https://www.dropbox.com/s/xd0wv5g9o7ycn ... .capx?dl=0
B
16
S
7
Posts: 46
Reputation: 1,344

Post » Sat Aug 20, 2016 8:56 pm

You need to add a "Player Platform Behavior simulate Jump" action to the tap up arrow event. Platform behavior uses arrow keys by default so it automatically simulates jump when you press the up arrow, it just doesn't tell you about it.
B
49
S
23
G
17
Posts: 291
Reputation: 12,407

Post » Sun Aug 21, 2016 3:10 pm

Where do you find that at? I looked at the On tap gesture for the control called "touchUp" and didn't see that?
B
16
S
7
Posts: 46
Reputation: 1,344

Post » Mon Aug 22, 2016 1:40 am

It'd be under Player as part of the platform movement actions.
B
49
S
23
G
17
Posts: 291
Reputation: 12,407

Post » Mon Aug 22, 2016 12:36 pm

Here's what I see when I look under the player Platform attributes.

https://www.dropbox.com/s/r49s83w3ejxrc ... e.PNG?dl=0
B
16
S
7
Posts: 46
Reputation: 1,344

Post » Tue Aug 23, 2016 6:57 pm

I meant the actions when in the event sheet editor.

On tap up arrow --> Player simulate jump

To add the simulate jump action go to Add Action --> Player --> under Platform behavior --> Simulate Jump
B
49
S
23
G
17
Posts: 291
Reputation: 12,407

Post » Wed Aug 24, 2016 2:07 am

That did it! Thanks!
B
16
S
7
Posts: 46
Reputation: 1,344


Return to How do I....?

Who is online

Users browsing this forum: Rudi55 and 6 guests