# Need help with walls

**URL:** <https://forum.kirupa.com/t/need-help-with-walls/183156>\
**Category:** programming\
**Created:** [March 24, 2006, 7:46am UTC](https://forum.kirupa.com/t/need-help-with-walls/183156 "2006-03-24T07:46:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sensible](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Sensible](https://forum.kirupa.com/u/Sensible)\
**Post date:** [March 24, 2006, 7:46am UTC](https://forum.kirupa.com/t/need-help-with-walls/183156/1 "2006-03-24T07:46:18Z")

</div>

I’m making a game like 2D Counter Strike and I need to know how to keep the second player from walking through the walls. Additionally, I want to know how to implement weapons into the game which project bullets/circles or items which the player can pick up and can be stored in an inventory. Any help would be appreciated, I’ve included a .fla file and a .swf

---

<div class="post-metadata">

**Author:** ![anon1712571](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@anon1712571](https://forum.kirupa.com/u/anon1712571)\
**Post date:** [March 24, 2006, 8:29am UTC](https://forum.kirupa.com/t/need-help-with-walls/183156/2 "2006-03-24T08:29:50Z")

</div>

use a hittest? 😛  
I remember some one did an awesome lineto thing for a shooter and posted it here- search for it 🙂

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [March 25, 2006, 10:31pm UTC](https://forum.kirupa.com/t/need-help-with-walls/183156/3 "2006-03-25T22:31:44Z")

</div>

> **[game help](https://www.kirupa.com/forum/showthread.php?t=211676)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

That’s an engine I made a while back. It has movement and an inventory. If you still need hitTest help, give us a yell.

---

<div class="post-metadata">

**Author:** ![Sensible](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Sensible](https://forum.kirupa.com/u/Sensible)\
**Post date:** [March 26, 2006, 6:05am UTC](https://forum.kirupa.com/t/need-help-with-walls/183156/4 "2006-03-26T06:05:05Z")

</div>

that was awesome nathan! I used your engine and its fantastic! I just implemented my character into it and removed yours… but now the problem is that the walls don’t work and the player can move right through them… please help?

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [March 26, 2006, 6:41am UTC](https://forum.kirupa.com/t/need-help-with-walls/183156/5 "2006-03-26T06:41:31Z")

</div>

[http://www.n99creations.com/?pID=archives&col=Blue&arch=getBounds\_as\_walls](http://www.n99creations.com/?pID=archives&col=Blue&arch=getBounds_as_walls)

😉
