# Check this OUT! (destructable terrain)

**URL:** https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042
**Category:** random
**Created:** [December 23, 2002, 8:30am UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042 "2002-12-23T08:30:29Z")
**Posts on this page:** 11
**Page:** 2

<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: [December 24, 2002, 5:03pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/21 "2002-12-24T17:03:21Z")

</div>

Cool deal bit…

I see you understood the concept of those grey boxes then? Or did you use something different for that?

Yeah… The finished layout of mine will be at around 550 x 450… I just amde it smaller so I wouldn’t have to mess around with too many things… Expanding it to a larger size isn’t going to be hard and neither is putting everything into mation and stuff…

I already helped someone out with the shooting algorithms and stuff like that… I can just copy and paste my own code to use in it 🙂

Take it easy man,

btw… If you gte the chance… I’d love to ask you if you could help me come to a conclusion about this isometric design concept I’m having… For collision detetction in it…

Thanks Again

---

<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: [December 24, 2002, 11:19pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/22 "2002-12-24T23:19:44Z")

</div>

actually, i didn’t use any extra boxes or anything. i just drew the shape in an empty movie clip, then did a hit test against the “bomb’s” position. then did some math to find out where it hit and what point to move down.

source here: [www.bit-101.com/flafiles](http://www.bit-101.com/flafiles)

---

<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: [December 24, 2002, 11:35pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/23 "2002-12-24T23:35:43Z")

</div>

Nice job, Playamarz 🙂

---

<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: [December 25, 2002, 3:06am UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/24 "2002-12-25T03:06:48Z")

</div>

Yeah… I see…

Hmm… Doesn’t .hitTest do the boundry boxes? Or did you do a hitTest against the general location of all the points inside of the movie land clip?

I would check out the .fla but I don’t have flahs on this computer… My truck’s brakes went out… SHIBBY! hehehe…

Peace

---

<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: [December 25, 2002, 5:28am UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/25 "2002-12-25T05:28:29Z")

</div>

i draw the shape inside a movie clip called “land”  
then i can do a hitTest like:

land.hitTest(bomb.\_x, bomb.\_y, true)

this sets the shapeflag to true, which checks the actual shape, not bounding box.

---

<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: [December 25, 2002, 4:25pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/26 "2002-12-25T16:25:12Z")

</div>

OH SHIBBY!

No fake?!?!

d00d… Thanks for informing me for that now… GEEEZZZ

_lol_… That’s cool though… I can decrease the code of this for a while…

Peace Out

---

<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: [December 25, 2002, 5:04pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/27 "2002-12-25T17:04:40Z")

</div>

When testing for the true shape, and not just the bounding box, doesn’t that make the movie more processor intensive? Just a word of caution…

Nice job Playamarz 🙂

---

<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: [December 25, 2002, 6:20pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/28 "2002-12-25T18:20:19Z")

</div>

Nice trick, Bit. 🙂 And Jubby, I have no idea. But you can test the speed of both commands very easily with a timer if you really want to know.

pom :crazy:

---

<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: [December 25, 2002, 6:22pm UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/29 "2002-12-25T18:22:20Z")

</div>

heh, this is at bit-101’s lab section too 😛

one of the newest additions 😏

---

<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: [December 26, 2002, 6:26am UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/30 "2002-12-26T06:26:50Z")

</div>

Yeah…

I inspired him to recreate it…

:sleep:

---

<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: [December 26, 2002, 6:28am UTC](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042/31 "2002-12-26T06:28:46Z")

</div>

Actually… When you think about it…

It couldn’t be too much mroe intensive than say…

20 hitTests on those grey boxes… And when expanding to a wider movie… At 650 pixels with 10 pixel intervals… That’s 65 hitTest / frame…

That’s gotta be slower than one trueform hitTest… Wouldn’t you say… Thanks for the tip bit.

Peace

[Previous page](https://forum.kirupa.com/t/check-this-out-destructable-terrain/10042.md?page=1)
