# Read Sprite Flags in Blocks

**URL:** <https://forum.makecode.com/t/read-sprite-flags-in-blocks/5836>\
**Category:** Arcade\
**Created:** [January 28, 2021, 3:59pm UTC](https://forum.makecode.com/t/read-sprite-flags-in-blocks/5836 "2021-01-28T15:59:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jabberwock](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@Jabberwock](https://forum.makecode.com/u/Jabberwock)\
**Post date:** [January 28, 2021, 3:59pm UTC](https://forum.makecode.com/t/read-sprite-flags-in-blocks/5836/1 "2021-01-28T15:59:54Z")

</div>

I’m trying to read the sprite flags state in blocks for example to know if sprite is set to Ghost or Invisible. Which is very useful.  
The problem is that the code turns to Javascript and then the variable get changed  
 ![Screenshot_2021-01-28 Microsoft MakeCode Arcade](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6f02b001343bad9f959e57066de8bee52509eb83.png)  
How to do it in blocks or I’m missing something since I know there is a way to set the flag but not to read…
