# Enemy animation - sprite no longer an enemy

**URL:** <https://forum.makecode.com/t/enemy-animation-sprite-no-longer-an-enemy/1531>\
**Category:** Help\
**Created:** [March 29, 2020, 1:08am UTC](https://forum.makecode.com/t/enemy-animation-sprite-no-longer-an-enemy/1531 "2020-03-29T01:08:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle76063](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@kyle76063](https://forum.makecode.com/u/kyle76063)\
**Post date:** [March 29, 2020, 1:08am UTC](https://forum.makecode.com/t/enemy-animation-sprite-no-longer-an-enemy/1531/1 "2020-03-29T01:08:36Z")

</div>

When I animate an Enemy sprite with frames, the collision of a friend and enemy no longer works. Suggestions?

I tried both the “legacy animation” and the new “animation loop”, and I can’t get either of them to be treated as an enemy sprite.

See attached sample where I made a blinking block an “enemy”, yet the “friend” can touch it unlike the other enemy sprites.  
 ![arcade-Chicken-Run-EnemyAnimationTest](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/2f76781c4e770170a08767a8502c20974ddffe84.png)

Kyle

---

<div class="post-metadata">

**Author:** ![kyle76063](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@kyle76063](https://forum.makecode.com/u/kyle76063)\
**Post date:** [March 29, 2020, 3:19pm UTC](https://forum.makecode.com/t/enemy-animation-sprite-no-longer-an-enemy/1531/2 "2020-03-29T15:19:09Z")

</div>

Solved.

In the “blocks” view, the other sprites that are “enemy” look different. This is the “legacy sprites”.  
When I went to “JavaScript” view, I found the enemy is created differently:

> SpriteKindLegacy.Enemy

This works.  
This one, SpriteKind.Enemy, does not.

Hope this helps someone else,

Kyle
