Making an archer
fatetaleteller
Member, PRO Posts: 40
Could anyone tell me how i can make an actor that shoots arrows at the player? (arrows must not follow the player)
Thanks!
Comments
Is it a side-scrolling view? Top down view?
More info on what you want would help us...
@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.
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.
@imjustmike How can i do it so that x & y values wont reset all the time (which makes arrow to follow the player)
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).
@imjustmike Thanks!