# How to assign properties to sprites (enemies)

**URL:** <https://forum.makecode.com/t/how-to-assign-properties-to-sprites-enemies/14107>\
**Category:** Help\
**Created:** [June 16, 2022, 3:54pm UTC](https://forum.makecode.com/t/how-to-assign-properties-to-sprites-enemies/14107 "2022-06-16T15:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stobe](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Stobe](https://forum.makecode.com/u/Stobe)\
**Post date:** [June 16, 2022, 3:54pm UTC](https://forum.makecode.com/t/how-to-assign-properties-to-sprites-enemies/14107/1 "2022-06-16T15:54:40Z")

</div>

Hi there.

I’m trying to assign different point values to enemy sprites. I can see how to set kind, x, y, etc. But can you create your own property or variable that will be assigned to a sprite? That way when you check for collision with “othersprite”, it will be able to lookup the point value of the sprite it’s hitting?

Thanks!

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [June 16, 2022, 3:59pm UTC](https://forum.makecode.com/t/how-to-assign-properties-to-sprites-enemies/14107/2 "2022-06-16T15:59:24Z")

</div>

Yes! If you use the arcade-sprite-data extension, you can set all sorts of properties on your sprites!

“Data” shows up at the bottom of the Sprites category. You can use the blocks inside of an `on created sprite of kind` event container to assign a property to each enemy, then add your points to each individual enemy inside of an `on sprite overlaps othersprite` event.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [March 15, 2023, 12:49am UTC](https://forum.makecode.com/t/how-to-assign-properties-to-sprites-enemies/14107/3 "2023-03-15T00:49:13Z")

</div>

you can also use the “for value of list” block in the loops section.
