Hi y'all, I've been trying for a few days to create a simple ai behaviour for the 'enemy' sprites in my game, I've tried three methods (collision, distance, and a mix of both) so far and none of them have worked for me (probably doing something wrong though).
What I would like to happen is; sprite (Enemy) collides with sprite (Trap), (Enemy) begins "attack" animation, when finished (if trap still exists within X-range), deal damage, repeat if trap is still "alive" if not continue moving.
^ Unless there is a better way of achieving the same result, of course.
C3P & video/gif attached, thanks in advance for any help!
Event Group: Enemy Behaviour V3 (E-119)
^ or the 2 above disabled groups (older attempts)
<iframe src="https://giphy.com/embed/Q0TVTcI6B12sd252hp" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/Q0TVTcI6B12sd252hp">via GIPHY</a></p>
dropbox.com/scl/fi/yi1zdun54l8imrn173h4y/TD-Test.c3p
dropbox.com/scl/fi/qeatlxcn3emnfuhef7xiz/TD-Test.mp4