# Wall not Blocking prob =(

**URL:** https://forum.kirupa.com/t/wall-not-blocking-prob/183994
**Category:** programming
**Created:** [March 31, 2006, 8:07pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994 "2006-03-31T20:07:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ricer](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@ricer](https://forum.kirupa.com/u/ricer)
#### Post date: [March 31, 2006, 8:07pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/1 "2006-03-31T20:07:37Z")

</div>

heya i hope im in the right section finally 😛

i have tried many ways to get my char from not walking thru a wall

does anyone has a good code?

thnx 😃

regards,  
Ricer

---

<div class="post-metadata">

### Author: ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)
#### Post date: [March 31, 2006, 8:36pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/2 "2006-03-31T20:36:14Z")

</div>

you have to use the hitTest function

---

<div class="post-metadata">

### Author: ![ricer](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@ricer](https://forum.kirupa.com/u/ricer)
#### Post date: [March 31, 2006, 8:38pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/3 "2006-03-31T20:38:39Z")

</div>

i did that, didnt work :S

only thing happend was that the wall was moving :S

---

<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 31, 2006, 9:46pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/4 "2006-03-31T21:46:26Z")

</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)

that help? It’s a very basic example

---

<div class="post-metadata">

### Author: ![ricer](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@ricer](https://forum.kirupa.com/u/ricer)
#### Post date: [March 31, 2006, 9:56pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/5 "2006-03-31T21:56:47Z")

</div>

Yeah it worked 😃

thanks man ^^

ur awsome 😉 (i know i sound noobish :p)

---

<div class="post-metadata">

### Author: ![ricer](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@ricer](https://forum.kirupa.com/u/ricer)
#### Post date: [April 1, 2006, 3:07pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/6 "2006-04-01T15:07:24Z")

</div>

One more question

i want to make more than one wall but if i do the char cant walk because the movieclip will have a whole square selected

anything to do about that?

(yes i know im a noob ) 😛

---

<div class="post-metadata">

### Author: ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)
#### Post date: [April 1, 2006, 4:05pm UTC](https://forum.kirupa.com/t/wall-not-blocking-prob/183994/7 "2006-04-01T16:05:33Z")

</div>

dude.onEnterFrame = function(){  
if(\_root.ground.hitTest(this.\_x,this.\_y,true)){  
trace(‘gay’);  
}  
}
