Max Angle Platformgame

0 favourites
  • 3 posts
From the Asset Store
AppLovin MAX Ads ( Banner Ad, Interstitial Ad Rewarded Ad, MREC Ad)
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi, you could make a new sprite "HelpSprite", and set it to invisible in the property window. Then make two events like this:

    Every Tick:
    	[li]> HelpSprite: Set angle toward (Mouse.X, Mouse.Y)[/li]
    	[li]> HelpSprite: Set position to YourSprite[/li]
    HelpSprite is between 60 and 300 degrees:
    	[li]> YourSprite: Set angle to HelpSprite.Angle degrees[/li]
  • Thank you very much, it works pretty...

    <img src="smileys/smiley32.gif" border="0" align="middle" /> <img src="smileys/smiley32.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)