Max Angle Platformgame

Get help using Construct 2

Post » Sun May 06, 2012 5:50 pm

Hello,

I used the "Set angle toward" action to my mouse, its working but I want a max Angle for the Rotation of the sprite between 60 and 300 degrees, so I can move my mouse more than 60 or 300 Degrees but the Sprite, doesnt rotate anymore only if my Cursor turns back in the are of movement...




Sorry for my bad english.



B
3
Posts: 2
Reputation: 429

Post » Sun May 06, 2012 6:06 pm

Hi, you could make a new sprite "HelpSprite", and set it to invisible in the property window. Then make two events like this:

[code]Every Tick:
-> HelpSprite: Set angle toward (Mouse.X, Mouse.Y)
-> HelpSprite: Set position to YourSprite

HelpSprite is between 60 and 300 degrees:
-> YourSprite: Set angle to HelpSprite.Angle degrees
[/code]Nimtrix2012-05-06 18:10:29
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun May 06, 2012 6:57 pm

Thank you very much, it works pretty...

B
3
Posts: 2
Reputation: 429


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Colorfish, GSquadron, zenox98 and 23 guests