well maybe because you assume that an anime is getting hit.
if you hit a wall the folloing line will crash.
if(you == player)...

you need to check bevore if you hit an entity or a wall!
you need something like this:

if(event_type == event_entity && you == player){return;}
if(event_type == event_entity && you != player){you.health -= xx;return;}
ifevent_type == event_block && you == player){effect(hit_block_effect, 0, target, normal);return;}

i wrote small even things that schould be tall , so you dont need to take code from others, but i hope you get an idea reading thes^^


it found a voice ... now it needs a body