Contact Info / Websites

free action script yaaaay

2008-03-20 19:18:24 by geekmonky

we all like some free script
comment on it and say how it can be inproved

onClipEvent (load) {
power=30;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
this._x-=power;
_parent._x+=power;
}
if(Key.isDown(Key.UP)){
this._y-=power;
_parent._y+=power;
}
if(Key.isDown(Key.DOWN)){
this._y+=power;
_parent._y-=power;
}
if(Key.isDown(Key.RIGHT)){
this._x+=power;
_parent._x-=power;
}
while (_root.wall.hitTest(_x, _y+radius, true)) {
_y--;
}
while (_root.wall.hitTest(_x, _y-radius, true)) {
_y++;
}
while (_root.wall.hitTest(_x-radius, _y, true)) {
_x++;
}
while (_root.wall.hitTest(_x+radius, _y, true)) {
_x--;
}
}

all it is ,is a movie clip can move around with a scrolling background simple a n cool


Comments

You must be logged in to comment on this post.