How do I set angle toward mouse but stop within certain #°

Get help using Construct 2

Post » Fri Mar 03, 2017 12:50 pm

@lamar Its not mine, I don't have a head sprite and my character is not a robot. Can you link to the post, kind of interested in what it is now.
B
13
S
7
G
2
Posts: 65
Reputation: 2,307

Post » Fri Mar 03, 2017 1:27 pm

You "I have the angle working, but I have no idea how I can stop the object "rotating" towards the mouse. My character has a gun and it rotates towards the mouse and the gun flips and the character gets mirrored when the mouse is either side of the character."

The thing is, I do not want the gun to keep rotating past a certain degree, as at the moment it will clip inside the player. I want to try and have it so it only rotates along an arc of about 80° .

Does anyone know how to do this?"

Link that was on your post:

https://www.dropbox.com/s/mpg218kbwwx6zf1/Problemaiming.capx?dl=0




Picture of the character:

Image

Now if that isn't yours who's is it and it fits your OP perfectly and I wasn't following any one else's post that had that problem?

Never mind- It was BobbyNeal and your post was asking the same question describing the same character and aiming probs.

Sure you aren't using two accounts?

Anyway, that is the solution for that aiming problem.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Fri Mar 03, 2017 8:11 pm

@lamar I'm not that guy xD I'm going to have to check it out now.
B
13
S
7
G
2
Posts: 65
Reputation: 2,307

Previous

Return to How do I....?

Who is online

Users browsing this forum: namaewayukidesu and 19 guests