Can't Find Solution-Need Help Desperately
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)
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