# Is there a way to check if a sprite has a flag?

**URL:** <https://forum.makecode.com/t/is-there-a-way-to-check-if-a-sprite-has-a-flag/6303>\
**Category:** Help\
**Created:** [February 22, 2021, 4:25pm UTC](https://forum.makecode.com/t/is-there-a-way-to-check-if-a-sprite-has-a-flag/6303 "2021-02-22T16:25:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 22, 2021, 4:25pm UTC](https://forum.makecode.com/t/is-there-a-way-to-check-if-a-sprite-has-a-flag/6303/1 "2021-02-22T16:25:14Z")

</div>

This would be useful for soft-locking, because apparently no collision checks are run on that sprite while it is soft-locked and there are probably more scenarios that require this, like triggering more flags all the time instead of doing each manually.
