# How do I Gun Angle ?

Get help using Construct 2

### » Thu May 04, 2017 8:04 am

B
18
S
8
G
3
Posts: 24
Reputation: 3,083

### » Thu May 04, 2017 9:46 am

I'm having trouble understanding your diagram.

Do you want the gun to rotate a minimum of 5 degrees if a button is tapped, but if the button is held then keep rotating until the gun is at 270/325/0/35 degrees?
B
24
S
9
G
4
Posts: 515
Reputation: 4,472

### » Thu May 04, 2017 10:01 am

I'm having trouble understanding your diagram.

Do you want the gun to rotate a minimum of 5 degrees if a button is tapped, but if the button is held then keep rotating until the gun is at 270/325/0/35 degrees?

Yeah, to me it looks like he wants it to stop at those increments when held down... so it will rotate by 5 degrees until it reaches XYZ angle then stop, until the user presses again.

This could be a tricky bit of logic actually... hmmm...

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
41
Posts: 3,032
Reputation: 30,999

### » Thu May 04, 2017 10:38 am

@SoldjahBoy

Yeah, not so straightforward... time to put the thinking cap on...
B
24
S
9
G
4
Posts: 515
Reputation: 4,472