Moving sprite aggro

how would I make a moving enemy aggro the player if it sees them? (the player being in front of the enemy) and I would also like it so that the enemy loses aggro when sight is cut off, EX: wall, door, ect

1 Like

This extension should be helpful

dont know if this works but maybe use the sprite util extension and Do: Forever If my sprite distance =__ set my enemy follow my sprite Else_______

1 Like

thats what I have been using before this post got approved and luke suggested that extension, I just ended up making the enemy blind but he can still aggro

2 Likes

how would I make it so that a death animation played with the raycast animation block??

um… I never used the raycasting exteinsion so I’m not sure sorry @Lilvince

it’s okay, I figured it out (eventually)

1 Like

How did you figure it out? Can you please tell me? I’ve been having this problem but something similar; I want it so that if you look at the enemy directly, there would be a 50% chance that it’ll disappear and a 50% chance that it’ll chase the player. :slightly_smiling_face: