xbox controller shoot right thumb

For questions about using Classic.

Post » Mon Aug 15, 2011 3:53 pm

Hi all am new on contruct classic !

am trying to shoot a bullet with the right thumb
it work but the bullet take the direction of the left thumb :(

in fact i wan shoot a bullet with the right thumb and take the direction
of the right thumb.

thanks for your help !
B
1
G
1
Posts: 1
Reputation: 427

Post » Mon Aug 15, 2011 9:32 pm

I have the same problem :( I didn't find any solution
B
1
G
1
Posts: 8
Reputation: 491

Post » Tue Aug 16, 2011 9:13 am

Could You describe in detail how Your event to do so looks right now?
B
3
G
1
Posts: 70
Reputation: 615

Post » Tue Aug 16, 2011 10:36 am

Hm strange. How about creating an object to visually represent the position of the right stick and having the bullets fire and set angle towards it..
Always > Reticule: Set position
X = PlayerSprite.X + XBox360Controller.RightThumb(1)*100
Y = PlayerSprite.Y + XBox360Controller.RightThumb(1)*100

Reticule would be the new object you create and the *100 is important as the actual output from RightThumb is only a tiny decimal :)
Then just when you spawn bullets fire towards and set angle to the 'reticule' object.Corvidae2011-08-16 10:37:25
B
14
S
2
G
6
Posts: 52
Reputation: 3,633

Post » Wed Aug 24, 2011 10:27 pm

Thanks, Corvidae, this actually works really well for a twin stick shooter type of thing.

I also added the same principle to movement by having a "guide" in front of the object, which has a bullet movement that changes speed depending on how far or close the "guide" is. This smoothens the movement out nicely.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests