How do I correctly use the joystick?

Get help using Construct 2

Post » Sun Feb 15, 2015 4:36 pm

Hi guys!

I'm kinda new to construct, started using it like a week ago.

I would like to create a fighting system based on Joystick direction. Meaning if the player press the joystick up, and the attack button he trigger a dash attack. Same goes for the others directions.
But i can't get the game to understand he can only trigger the dashing attack if the two keys (button attack and direction on the joystick) are pressed at the same time. Having already left or right pressed on the joystick, and then pressing the attack button should result in something else, and not a dashing attack.

That's were i kinda struggle.

I hope i was clear enough, thanks for taking the time to read my problem.
B
4
S
1
Posts: 3
Reputation: 356

Post » Mon Feb 16, 2015 1:55 pm

Could use some help. I though about storing the last state of the joystick to compare it with the present one to achieve my goal.

But i really don't know where to start.
B
4
S
1
Posts: 3
Reputation: 356

Post » Mon Feb 16, 2015 2:12 pm

B
213
S
29
G
14
Posts: 1,868
Reputation: 36,972


Return to How do I....?

Who is online

Users browsing this forum: Hasuak, RayKi and 19 guests