Gamepad thumbstick to replace mouse aim

Get help using Construct 2

Post » Mon Dec 30, 2013 1:45 pm

Yes, have set them to global variables. The target reticule still moves back towards the center the moment the right stick is released, as I guess the global variables are set to 0 as soon as this happens?

When I try to set the player angle toward (Target.TargetX, Target.TargetY) after setting TargetX to OffsetX and TargetY to OffsetY every tick, the player doesn't rotate towards the reticule. The only way I can get this to work is if I use Set Angle To: angle(0,0,Gamepad.Axis(0,2),Gamepad.Axis(0,3)) but this snaps the player angle back to 0 on releasing the right stick.

Not using ScrollX/Y as UI is on a separate layer.
B
5
S
1
Posts: 44
Reputation: 665

Post » Tue Dec 31, 2013 3:53 am

remind me this - ill show u a picture of mine when i get home. someone else helped me with mine.
B
5
Posts: 33
Reputation: 316

Post » Tue Jul 15, 2014 9:37 pm

This is what I am trying to do as well
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Tue Jul 22, 2014 10:01 pm

@sxespanky do you have this screenshot or capx for this fix?
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Mon Jul 28, 2014 9:42 am

robertjs3, you may find the attached CAPX useful. It basically simulates hotline miami style gamepad controls

https://www.sendspace.com/file/wmb8uh
B
12
S
2
G
1
Posts: 23
Reputation: 886

Post » Mon Jul 28, 2014 4:21 pm

@stricky that is exactly what I am looking to do! Thanks stricky, I will check it out the capx when I can access it later.
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Wed May 03, 2017 12:25 am

Can any one fixe the download link, i really need this :) ty
B
12
S
4
Posts: 2
Reputation: 918

Post » Thu May 25, 2017 5:04 pm

stricky wrote:robertjs3, you may find the attached CAPX useful. It basically simulates hotline miami style gamepad controls

https://www.sendspace.com/file/wmb8uh


do you still have this useful capx?
B
72
S
16
G
2
Posts: 46
Reputation: 6,297

Previous

Return to How do I....?

Who is online

Users browsing this forum: Apollo14, ChoosyZerk and 58 guests