Hello fellas constructors,
Luckily this is not a medicine question but code!
I have been working lately on a super hero skill which infects enemies when the hero collides them, leaving a goo that if it's touched (overlapping) by the hero for a second time it will stick him to it till the infection disappears after x seconds.
I have tried a few codes but always get problems specially when the hero is quite close to the enemy (I think it recognizes the overlapping as a collision) and the infection blinks on and off. Also, I'd like to know how do I achieve this having 12 enemies in the same level, which in most of the cases they won't be all infected at the same time.
Thanks in advance for any help the community can provide!