Gamepad and 8 directions behavior ?

Get help using Construct 2

Post » Fri May 30, 2014 3:34 pm

Basically, if I do :
    if gamepad axis X > 0 -> 8 directions simulate right
    if gamepad axis Y > 0 -> 8 directions simulate down
The movement will go right AND down even if my stick is 100X and only 1 Y, which is not really nice if I want only go left.
So I made larger "areas" between X and Y to allow the player moving in only one direction even if the stick is a bit in another direction. I'm not fluent in english and I may be hard to undersand :D
That said, I made this :
Image
https://i.imgur.com/YTlfIjo.png

Now my character will go to the right or left only even the stick points a bit to up or down (and the same if you invert X and Y).
Is there any better way to do this?
You do not have the required permissions to view the files attached to this post.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Fri May 30, 2014 8:16 pm

Hi again. :) No idea?
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Fri May 30, 2014 8:57 pm

Why not just increase the deadzone? lol
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Fri May 30, 2014 9:23 pm

Try:
axis X >= 0
axis Y >= 0

because ">" not equal to ">="
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778

Post » Tue Jul 01, 2014 9:21 am

BUMP. I have the same issue and am wondering if there's any easier way to do it. (Neither of the suggestions solve this problem)
B
4
Posts: 3
Reputation: 211

Post » Tue Jul 01, 2014 10:04 am

Is this how you want it to work.

Test it HERE

8dirgamepad.capx
You do not have the required permissions to view the files attached to this post.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Wed Feb 25, 2015 11:14 am

Works well, thanks :)
B
12
S
7
G
7
Posts: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests