# Variable creation on demand

**URL:** <https://forum.makecode.com/t/variable-creation-on-demand/440>\
**Category:** Arcade\
**Created:** [August 13, 2019, 9:22pm UTC](https://forum.makecode.com/t/variable-creation-on-demand/440 "2019-08-13T21:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilmrmagoo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lilmrmagoo/32/528_2.png) [@lilmrmagoo](https://forum.makecode.com/u/lilmrmagoo)\
**Post date:** [August 13, 2019, 9:22pm UTC](https://forum.makecode.com/t/variable-creation-on-demand/440/1 "2019-08-13T21:22:39Z")

</div>

so it would be nice if there was a create variable block with a text field for the variable name it would make making sprites on demand a lot easier. also if the variable part of a set variable to block could be replaced with a function variable that would be nice.

---

<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 7, 2020, 2:49am UTC](https://forum.makecode.com/t/variable-creation-on-demand/440/2 "2020-04-07T02:49:17Z")

</div>

You can use arrays.  
Just append and pop values/strings/sprites from the array in the advanced catagory
