GameSalad

Explosion of coins that head towards a point?

abuabed84abuabed84 Posts: 396Member, PRO

How can I use the particles behaviour to create and explosion of coins (say 20) that head towards a given point (say x=30, y=30)

I know it has something to do with "direction" under "velocity/position"
but I can't seem to figure out the formula..

Comments

  • RThurmanRThurman Posts: 2,760Member, Sous Chef, PRO

    Try the vector to angle function

    Direction: vectorToAngle(30-self.Position.X,30-self.Position.Y)

  • ToqueToque Posts: 958Member, PRO

    Move to behavior??

Sign In or Register to comment.