I'm looking at a problem that surely has workarounds but as I'm always striving to improve my construct skills I am looking for a better solution from more experienced people.
So it's a tower defense with the family enemies. That family contains - amongst other enemies - the enemy object wolf.
Now I would like to have an invisibleWolf that has exactly the same animations and behavior as the normal wolf, with 2 exceptions:
- its opacity is set to 50%
- it's not part of the enemy-family yet, because I don't want my towers to shoot at it (they have the whole enemy-family set as target). ONLY if one special observer-tower "shoots" at it, the invisibleWolf becomes visible and all the other towers can shoot at it (as if it was just moved to the enemy-family).
Now I could just destroy the invisibleWolf and create a normal wolf at the same position when the invisibleWolf is shot by the observerTower, but then the new wolf would first turn and need to find the path again so it would basicly stop there for a second whereas I am looking for a "smooth" transition:
just turn the invisibleWolf into a normal wolf, as if that certain instance of the invisibleWolf was moved to the enemy-family (so that it becomes a target for ALL towers) and has its opacity set to 100%.
It's problably not that easy so I am not disappointed if there's no quick solution. Then I'll just do it with a workaround. But thank you in any case.