Making an archer

Could anyone tell me how i can make an actor that shoots arrows at the player? (arrows must not follow the player)
Thanks!

Comments

  • NNterprisesNNterprises Member, PRO Posts: 387
    edited August 2016

    Is it a side-scrolling view? Top down view?
    More info on what you want would help us...

  • fatetaletellerfatetaleteller Member, PRO Posts: 40

    @NNterprises It is side-scroll view.
    More info: There is an archer actor in my scene and player actor and when played collides with certain area i want archer to start shooting arrows at the actor. So far i have managed to do that BUT arrows keep following the player when i want them to go where actor was at the time when arrow was shot.

  • imjustmikeimjustmike Member Posts: 450

    set up real game attributes constrained to the actor x and y, and self attributes that are set to the same values as the actor's x and y just before the arrow fires. Use the self attributes to determine where the arrow is headed.

  • fatetaletellerfatetaleteller Member, PRO Posts: 40

    @imjustmike How can i do it so that x & y values wont reset all the time (which makes arrow to follow the player)

  • imjustmikeimjustmike Member Posts: 450

    That's what the self attributes are for

    game attributes are using constrain behaviour (so constantly update), the self attributes use change behaviour (so only change once, or whenever you tell them to).

  • fatetaletellerfatetaleteller Member, PRO Posts: 40

    @imjustmike Thanks!

Sign In or Register to comment.