[Solved] Spin actor not working with ios 8.3

smallingsmalling Member, PRO Posts: 72
edited May 2015 in Working with GS (Mac)

I have a game wheel that spins when touched and I'm trying to update the app for iOS 8.3 because of a keyboard issue. In creator this works without a problem, but when I publish and load it on my iPhone 5, the wheel won't spin after touching.

Here's the rule:
When
Game.Screen.Device Orientation is Landscape Left &
game.spin is true &
touch is pressed
Constrain attribute: self.Rotation to vectorToAngle(self.PositionX – game.Mouse.Position.X, self.PostionY–game.Mouse.Postion.Y)
when
when Mouse button is up
Change Attribute: self.Motion.Angular Velocity to –vectorToAngle(self.PositionX-game.Mouse.PostionX, self.PostionY-game.Mouse.Postion.Y)*100
Change attribute: game.spin to false

Comments

  • smallingsmalling Member, PRO Posts: 72

    Fixed it. Used when mouse button is down instead of when touch is pressed. Works now. Thanks.

Sign In or Register to comment.