# Next level after destroying blocks

**URL:** <https://forums.unrealengine.com/t/next-level-after-destroying-blocks/140841>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [April 2, 2020, 2:10pm UTC](https://forums.unrealengine.com/t/next-level-after-destroying-blocks/140841 "2020-04-02T14:10:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iSimstix1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iSimstix1](https://forums.unrealengine.com/u/iSimstix1)\
**Post date:** [April 2, 2020, 2:10pm UTC](https://forums.unrealengine.com/t/next-level-after-destroying-blocks/140841/1 "2020-04-02T14:10:14Z")

</div>

Hello!  
I want to start a new level after destroying all the blocks in the Arkanoid (I just compared a certain number of x and y blocks using blueprint), but I don’t know how to do this.  
There is an idea to make a special variable that will contain an array of generated blocks and after destroying one block, take one unit into the variable (i.e. one block), and when zero appears, create a collision in which you need to write logic to start the next level. But what I have described, I will not be able to fully implement

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [April 2, 2020, 2:48pm UTC](https://forums.unrealengine.com/t/next-level-after-destroying-blocks/140841/2 "2020-04-02T14:48:40Z")

</div>

If the blocks are actors, then I would use GetAllActorsOfClass() after each block is destroyed. If 0 then level completed.
