Download

[HELP] Attack Is Not Working Properly

So I made my character throw a ball of energy as an attack and when the ball hits the enemy it would kill him but it is not working very well
I can only kill if I am facing the enemy, attacks from behind or from the sides do not work, Just push him
Energy ball
Attack.jpg
Bp
Acertou = Hit
Vida = Life
BpAtaque.jpg

Hit
Inimigo Morto = Dead Enemy
0.0 = Current Life
Acertou = Hit
21597235a7929ad37fe0258e5b28e9b9658f7965.jpeg
59d725a498f0f80e97bd6afd5d2557809fec54f4.jpeg

Enemy
OrbInimigo.jpg
Bp
Vida = Life / Distancia = Distance
Muito Perto = Too Close / PlayerNaVista = Player In Sight
Atacou = Attacked
BpInimigo.jpg

Spawn Energy Ball
Vida = Life / Pulou = Jump
43254a8da33f7441a4219f1e21476cb51a68f194.jpeg