GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

accelerate torwards touch

GraphicWarehouseGraphicWarehouse Posts: 927Member
how do you make an actor accelerate torwards touch

Comments

  • GraphicWarehouseGraphicWarehouse Posts: 927Member
    anybody
  • latygo60latygo60 Posts: 27Member
    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 Posts: 927Member
    how do you make it stop accelerateing when you let go
  • latygo60latygo60 Posts: 27Member
    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
This discussion has been closed.