How do I Simulate button push with touch input?

Get help using Construct 2

Post » Sat Mar 08, 2014 7:41 pm

I have a complicated movement setup so I can have a double jump in my game and when I tried to use the simple Touch Control tutorial to create touch buttons for tablets and phones I ran in to some issues. For some reason the double jump is not working and the mirrored sprite when moving left is a little goofy. Any creative ideas how I can solve this issue? I can go in to more detail or post some project information if needed.

Thank you.
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Sun Mar 09, 2014 5:27 am

Button/Sprite - on push
- if doublejump is 0 - set doublejump to 30
- else "perform doublejump (insert your doublejump code here)"

Every step
Substract from doublejump variable 1*dt

With this code the user has 30 frames (or 0.5 Seconds) time to perform a double jump by tapping the button/sprite again.
B
10
S
2
Posts: 135
Reputation: 1,090


Return to How do I....?

Who is online

Users browsing this forum: hielo777, R0J0hound and 24 guests