is there anything wrong with this code (beside spaces ng doesnt like spaces) im tryin to make just a simple ball bounce but it only goes side to side
onClipEvent(load) {
speedX = 10;
speedY + 10;
}
onClipEvent(enterFrame) {
this._x += speedX;
this._y += speedY;
if (this._x >= 550) {
speedX = -speedX;
} else if (this._x <= 0) {
speedX = -speedX;
}
if (this._y >= 400) {
speedY = -speedY;
} else if (this._y <= 0) {
speedY = -speedY;
}
}
also im using flash mx
i think thats as1
but it might be as2
never mind i found the prob.