PDA

View Full Version : Flash coding problem



Swearwolf
12-03-2008, 04:30 PM
So my image bounces, goes up, left and right - but not down?
anyone help lol


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;
}
}

Insedated
12-03-2008, 04:54 PM
REMOVED

Edited by REDNECK (Forum Super Moderator): Please do not continue to insult other users.

Hypertext
12-03-2008, 08:21 PM
Ooh, I don't know the fix, I'm better with flash than actual AS, you just helped me with something =) +rep :)

Want to hide these adverts? Register an account for free!