hello ! im working on a topdown shooter type "hotline miami"
i would like the monster to be pushed away by the bullets
so i need to use the angle og the arriving bullet to push the monster in the right direction.
but i dont know how.
i've seen this post but i dont know how to use this method.
scirra.com/forum/topic68471_post420886.html
VectorX = ImpulseStrength * -cos(Angle)
VectorY = ImpulseStrength * -sin(Angle)
where to define impulsestrenght ?
if i use a number it doesnt work neither
for the angle i used (bullet.angle) but i dont know if its good because it didnt work.
precision : my monster are moved by pathfinding o they dont have neither 8 direction neither platform.
thanks for answers !