Ultor 1 Posted May 8, 2016 Share Posted May 8, 2016 Hy! bye would be a problem to have a rotation feature that is key, and is connected to the rotating characters, The function here def __OnClickPrevRotate(self): self.Rotation = self.Rotation - 1 chr.SetRotation(self.Rotation) My question to be solved long as you hold the button to the characters constantly spinning when you release the button used to rotation Thank you in advance for your answers Link to comment Share on other sites More sharing options...
Shang 369 Posted May 8, 2016 Share Posted May 8, 2016 Try this: self.isActiveRotation = False self.button.SetMouseClickEvent(self.ActiveRotation) self.button.SetMouseButtonUpEvent(self.DeactiveRotation) def ActiveRotation(self): self.isActiveRotation = True def DeactiveRotation(self): self.isActiveRotation = False def OnUpdate(self): if self.isActiveRotation: self.Rotation -= 1 chr.SetRotation(self.Rotation) 1 Link to comment Share on other sites More sharing options...
Ultor 1 Posted May 17, 2016 Author Share Posted May 17, 2016 thank you for your works Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now