# Breakout

**URL:** <https://forum.kirupa.com/t/breakout/41112>\
**Category:** flash\
**Created:** [January 25, 2004, 10:51pm UTC](https://forum.kirupa.com/t/breakout/41112 "2004-01-25T22:51:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![InsaneMonk](https://avatars.discourse-cdn.com/v4/letter/i/ce7236/32.png) [@InsaneMonk](https://forum.kirupa.com/u/InsaneMonk)\
**Post date:** [January 25, 2004, 10:51pm UTC](https://forum.kirupa.com/t/breakout/41112/1 "2004-01-25T22:51:05Z")

</div>

Alright. I have a breakout game. The ball has actions to check hitTest with the blocks and if so banish them 1000 pixels away. It only checks for the original block because they all have the same instance name and depth. How would you change the depth? Moreover, how would you duplicate it and place it in a fasion that it is all in a row and it duplicates more that one time on load? Thank you for your help! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 10:56am UTC](https://forum.kirupa.com/t/breakout/41112/2 "2004-02-07T10:56:47Z")

</div>

I was busy with stuff so i couldn’t answer you. What exactly do you want?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 4:00pm UTC](https://forum.kirupa.com/t/breakout/41112/3 "2004-02-07T16:00:28Z")

</div>

I had a look, and I’m a novice so this might not be what you’re looking for, but I used the code above by blah-de-blah on a new layer I inserted. I put this on the first frame, and on the sq MC I added:

```auto

onClipEvent(enterFrame){
if (this.hitTest(_root.ball)){
	setProperty(this, _alpha, 0);	
}
}

```

And the ball hit all the blocks and made them disappear, but the ball wasn’t bouncing off the duplicates the way it should, but you’ll have to fix that, I have no idea how you got that to happen on the original MC…hope this helps you in any way.

Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 9:05pm UTC](https://forum.kirupa.com/t/breakout/41112/4 "2004-02-07T21:05:50Z")

</div>

Hey! It’s fixed! Thanks to anyone who helped! :love:
