Question about setting up character controls. Direct finger movement?

I have seen lots of different types of character control videos but I don't think I have seen one for my needs.

Basically I want to be able to control my character with my finger. When I say that I mean as I move my finger around the screen my character stays directly underneath it. Can someone explain how to set that up?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    When Touch is Pressed
         Constrain Attribute self.position.X to game.mouse.position.X
         Constrain Attribute self.position.Y to game.mouse.position.Y
  • osakamitsuosakamitsu Member Posts: 70
    Awesome! Thank you for the very fast reply! I'll give that a go!
Sign In or Register to comment.