Can't Find Solution-Need Help Desperately
11XIndustries
Member, PRO Posts: 28
Here is what I have.
game.mousePosition.X to game.mousePosition.Y
Now, this works in rotating the actor, but I need the min95 and max20.
I need the cannon when touch is pressed, I will be able to rotate the cannon no more that min 95 and max20.
Any help with this is appreciated.
game.mousePosition.X to game.mousePosition.Y
Now, this works in rotating the actor, but I need the min95 and max20.
I need the cannon when touch is pressed, I will be able to rotate the cannon no more that min 95 and max20.
Any help with this is appreciated.
Comments
Give this a try.
Change Attribute: self.Rotation to: vectorToAngle(game.MousePositionX-self.PositionX, game.MousePositionY-self.PositionY)
AppTaco LLC
http://www.apptacostudio.com/
https://www.facebook.com/apptacostudio
game.mousePosition.X to game.mousePosition.Y
Now, this works in rotating the actor, but I need the min95 and max20.
I need the cannon when touch is pressed, I will be able to rotate the cannon no more that min 95 and max20.
Any help with this is appreciated.
made a little template
download link: https://www.dropbox.com/s/7p56mv5e8p3xrfz/max rotation template.zip
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮