use it like below
you need to use a if
loop to check if there is an enemy and attack it.
EDIT : also next time, pls format your code like @anon62741001 and @CocoCharlie said
check the importance of formating in here :
use it like below
you need to use a if
loop to check if there is an enemy and attack it.
EDIT : also next time, pls format your code like @anon62741001 and @CocoCharlie said
check the importance of formating in here :