Two Actions For One Attribute

2»

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    ChessPawn said:
    Is it not possible to get them to just shoot in a straight line depending on where the user tapped?

    Doh!
    I completely misunderstood. I thought you were trying to make the shuriken track like a guided missile. Instead you want it to go ballistic, like a bullet. In that case use a change velocity behavior (in the shuriken). Set its direction (relative to scene) to:

    vectorToAngle( game.Mouse.Position.X - self.Position.X , game.Mouse.Position.Y - self.Position.Y )

    Set the speed to whatever feels right.
Sign In or Register to comment.