How do I Move diagonally w/ Gamepad

Get help using Construct 2

Post » Tue Jul 05, 2016 6:20 am

i get the feeling no one actually use gamepad functions...
Referring to the construct manual i can have my player move up down left and right with the analog stick, but i cannot figure out how to get the character to move diagonally with turning the stick in between angles.

Any idea?
B
5
S
1
Posts: 88
Reputation: 653

Post » Tue Jul 05, 2016 9:37 am

If you use 8Direction, you don't have to do something special for diagonal movement.
This works for me:
Image
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Tue Jul 05, 2016 7:56 pm

This is perfect thanks, i dont know why it was giving me problems!
however I came across another problem though i added animations for each action and they seem to argue with each other if i dont press into a specific direction. up,down,left,right, Exact.

The code basically looks like this.
Left analog - press left, play animation "run left"
Left analog - press right, play animation "run right"

etc etc, any idea what i can do about that?
B
5
S
1
Posts: 88
Reputation: 653

Post » Wed Jul 06, 2016 11:25 am

I came across another problem though i added animations for each action and they seem to argue with each other if i dont press into a specific direction. up,down,left,right, Exact.


That problem is not so trivial, at least for me.
I made a litte example:
https://drive.google.com/file/d/0B5FlDY ... sp=sharing

Hope that will help.
Please feel free to ask if there are something you don't understand.
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Thu Jul 07, 2016 6:40 pm

Wow this is great! I cannot thank you enough for your help, somewhere on my end i have a few issues to sort out, but at least i have the knowledge on how to get it to work correctly.

Again thank you for taking the time helping me figure this out.
B
5
S
1
Posts: 88
Reputation: 653


Return to How do I....?

Who is online

Users browsing this forum: donstathemonsta and 33 guests