Hello everyone,
I'm making a sort of tower defense, and one of the tower sends "bouncing" lightning.
The way I wanted to go about this was to make the tower have a turret behavior, spawn a lightning going to the monster.
The lightning also has the turret behavior, and should, on collision with a monster, target a new one until its number of bounces reaches 0, upon which it is destroyed.
I have two problems though :
- If my lightning reaches its destination and the monster has moved, it simply stays put, not dying.
The way I tried to go about this was something like "If move-to destination reached and no Monster collision detected, then destroy lightning" but it doesn't seem to activate...
- When it reaches the first monster, i would like to make sure it picks a different one, so i tried to do something like this to make it pick another one, but it doesn't seem to work either :
Any help or pointer would be really appreciated, thanks a lot !