# Making walls, the fast way. Tips?

**URL:** <https://forum.kirupa.com/t/making-walls-the-fast-way-tips/282704>\
**Category:** programming\
**Created:** [February 25, 2009, 1:00pm UTC](https://forum.kirupa.com/t/making-walls-the-fast-way-tips/282704 "2009-02-25T13:00:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnsjohansson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jnsjohansson](https://forum.kirupa.com/u/jnsjohansson)\
**Post date:** [February 25, 2009, 1:00pm UTC](https://forum.kirupa.com/t/making-walls-the-fast-way-tips/282704/1 "2009-02-25T13:00:03Z")

</div>

hi,

i have a school assignment where I am told to re-interpret “little red riding hood”, now i want to make a great composition of different RPG’s where Link plays the main character but i have to present a demo soon and won’t have time to create a fully functional tile-system.

so, i need to do it a speedy way.

i took a background for a village, placed the character, made him walk, now i need to make borders/“walls” really quick. at first i thought i could just do it like this ![](http://jonasjohansson.se/1.png)

With a movieclip called “border” and then character.hitTestObject(border), but ofcourse the bounding box of the movieclip is all the small fields together, so this results true always.

Then i thought i could make a for loop which checked all the children of border, like for (i = 0; i \< border.numChildren; i++) { hitTest(border.getChildAt(i)) } sortof.

but no luck either.

i am terribly stressed and there has to be a simple solution for this no?

so, i would be ever so grateful if someone could assist me 🙂
