00:00
00:00
View Profile geekmonky
im just another human

Age 29, Male

Q.K.S

doom

Joined on 2/29/08

Level:
10
Exp Points:
940 / 1,110
Exp Rank:
69,802
Vote Power:
5.19 votes
Rank:
Portal Security
Global Rank:
24,411
Blams:
47
Saves:
361
B/P Bonus:
8%
Whistle:
Normal
Medals:
25

free action script yaaaay

Posted by geekmonky - March 20th, 2008


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

Comments ain't a thing here.