# Boundary coordinates not working

**URL:** <https://forum.kirupa.com/t/boundary-coordinates-not-working/61099>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 12:44am UTC](https://forum.kirupa.com/t/boundary-coordinates-not-working/61099 "2004-08-16T00:44:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skribble](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Post date:** [August 16, 2004, 12:44am UTC](https://forum.kirupa.com/t/boundary-coordinates-not-working/61099/1 "2004-08-16T00:44:29Z")

</div>

hey guys, i made sum coordinates that my MC (supposedly) cannot pass. But he keeps going past them. i was wondering if sumone can take alook for me.

```auto

   if (this._y<=175 && this._y>=400) {
   		moveYSpeed = 0;
   		moveXSpeed = 4;
   		scaleSpeed = 0;
   	} else {
   		if (this._x<=0 && this._x>=550) {
   			moveYSpeed = 2;
   			moveXSpeed = 0;
   			scaleSpeed = 0;
   		} else {
   			moveYSpeed = 2;
   			moveXSpeed = 4;
   			scaleSpeed = 0.5;
   		}
   

```

ovcourse this is only a portion of my code but, can sumone check if its right? the variables speek for themselves. any help would be greatly appreciated.

thanx

---

<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:** [August 16, 2004, 4:35am UTC](https://forum.kirupa.com/t/boundary-coordinates-not-working/61099/2 "2004-08-16T04:35:57Z")

</div>

first two statements will always be evaluated as false  
here’s why:  
(this.\_y\<=175 && this.\_y\>=400)  
if y is smaller than 175 AND biger than 400(imposible)  
if (this.\_x\<=0 && this.\_x\>=550)  
if x is smaller than 0 AND biger than 550 (also imposible)
