00:00
00:00
kiljoy96
Just woke up, what'd I miss?

Monsieur Johnsieur @kiljoy96

Male

Challenge Pisser

Ronnie Johnald's Culinary

Pizza Planet

Joined on 7/2/08

Level:
21
Exp Points:
4,780 / 4,900
Exp Rank:
10,697
Vote Power:
6.31 votes
Rank:
Police Officer
Global Rank:
18,630
Blams:
134
Saves:
405
B/P Bonus:
10%
Whistle:
Normal
Medals:
841

help with code

Posted by kiljoy96 - August 25th, 2008


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.


Comments

Comments ain't a thing here.