accelerate torwards touch

GraphicWarehouseGraphicWarehouse Member Posts: 927
edited November -1 in Working with GS (Mac)
how do you make an actor accelerate torwards touch

Comments

  • GraphicWarehouseGraphicWarehouse Member Posts: 927
    anybody
  • latygo60latygo60 Member Posts: 27
    With a Move to or Accelerate Towards behavior, tracking the touch position.

    Make two attributes. TouchX & TouchY.

    You have to make a rule.
    When touch is down, change attribute TouchX to devices>touch>positionX.
    change attribute TouchY to devices>touch>positionY.

    Accelerate towards TouchX & TouchY. And that's it.

    Hope it helps.
  • GraphicWarehouseGraphicWarehouse Member Posts: 927
    how do you make it stop accelerateing when you let go
  • latygo60latygo60 Member Posts: 27
    On the Rules, in the otherwise section, put what you want it to do when you don't touch, e.g. Change velocity to 0
Sign In or Register to comment.