# Variables with different values

**URL:** <https://forum.makecode.com/t/variables-with-different-values/13304>\
**Category:** Help\
**Tags:** game\
**Created:** [April 27, 2022, 9:35pm UTC](https://forum.makecode.com/t/variables-with-different-values/13304 "2022-04-27T21:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timmy16](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Timmy16](https://forum.makecode.com/u/Timmy16)\
**Post date:** [April 27, 2022, 9:35pm UTC](https://forum.makecode.com/t/variables-with-different-values/13304/1 "2022-04-27T21:35:22Z")

</div>

I am making a game in which I have two enemies of the same type but different sprite, I made a variable for their damage but every they spawn they have the same damage value, I don’t know How to make the variable don’t change without needing to create another variable and change my sprite kind. someone who knows?

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 27, 2022, 11:47pm UTC](https://forum.makecode.com/t/variables-with-different-values/13304/2 "2022-04-27T23:47:48Z")

</div>

You can use the sprite data extension to store individual variables (like numbers) on sprites.

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/558d3db9d7fe2218f49602fb0817ff766883ed81.png)
