-
Flash coding problem
So my image bounces, goes up, left and right - but not down?
anyone help lol
HTML Code:
if (Key.isDown(Key.LEFT)){
if((_x-5) > (_width/2)) {
_x-=5;
}
}
if (Key.isDown(Key.RIGHT)){
if((_x+5) < ScreenWidth-(_width/2)) {
_x+=5;
}
}
if (Key.isDown(Key.UP)){
if((_y-5) > (_height/2)) {
_y-=5;
}
}
if (Key.isDown(Key.DOWN)){
if((_y+5) < ScreenHeight-(_height/2)) {
_y+=5;
}
}
-
REMOVED
Edited by REDNECK (Forum Super Moderator): Please do not continue to insult other users.
-
Ooh, I don't know the fix, I'm better with flash than actual AS, you just helped me with something =) +rep :)