How do you make it so that when a sprite in a certain costume hits some one there life goes down.
Offline
do you have a variable? if yes,
<when green flag clicked>
<forever>
<wait until> << <touching[ enemy ] <and><( [costume # of enemy] <=> 2 (attack costume) )> >>
<change{ health }by( -1
<wait until> << << <not> <touching[ enemy >> <or> << <not><( costume # of enemy <=> 2 )> >> >>
Offline