# Wall help?

**URL:** https://forum.kirupa.com/t/wall-help/297951
**Category:** Uncategorized
**Created:** [October 11, 2009, 3:10am UTC](https://forum.kirupa.com/t/wall-help/297951 "2009-10-11T03:10:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Press\_Tilty](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Press\_Tilty](https://forum.kirupa.com/u/Press_Tilty)
#### Post date: [October 11, 2009, 3:10am UTC](https://forum.kirupa.com/t/wall-help/297951/1 "2009-10-11T03:10:57Z")

</div>

I have my walls set up for if the wall detects a hitTest with the player (code on the wall), that \_global rspeed = 0; (and vice versa for the l wall).

then in the else statement rspeed = 8.  
But if i have two rwalls, then if i’m not hitting (lets call it) wall1, then rspeed = 8, even if im hitting (lets call it) wall2.

Is there a simpler way than having an if (!) statement and list every named wall in the level, or do i have to do that?

respond quickly please!
