I want to do that if the enemy is destroyed, increase the speed of line of sight towards an object.
I use this code to move the enemy: angle(enemy.X,enemy.Y,caracter.X,caracter.Y) Distance 5
I want to do this: enemy destroy->set Line Of Sight to object speed +1
How do you do this?
Thank you!
There is no speed linked to line of sight, rephrase?
Develop games in your browser. Powerful, performant & highly capable.
I would need a way that increases distance +1
Instead of distance 5, use a global variable which is initial value 5. Then you add logic, on enemy destroyed : add 1 to global variable.