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.
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