Thread: Flash
View Single Post
Old 08-24-2006, 04:52 AM   #15 (permalink)
HayaiHaku
Still learning the ropes
 
Join Date: Aug 2006
Location: Winter Haven,Fl
Posts: 22
Reputation: 10
Send a message via AIM to HayaiHaku Send a message via Skype™ to HayaiHaku
MMOFaces Profile: None Yet
Default

Ok so I think i almost got down actionscript as far as character movement,the problem is is that the script im using jerks the character around and doesnt even move in the right direction.Heres the code:

onClipEvent (load) {
movespeed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
play();
_rotation = 90;
_x += movespeed;
}
if (Key.isDown(Key.LEFT)) {
play();
_rotation = 270;
_x -= movespeed;
}
if (Key.isDown(Key.UP)) {
play();
_rotation = 0;
_y -= movespeed;
}
if (Key.isDown(Key.DOWN)) {
play();
_rotation = 180;
_y += movespeed;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP)) {
_rotation = 45;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.UP)) {
_rotation = 315;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN)) {
_rotation = 135;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN)) {
_rotation = 225;
}
}
__________________

Hayai Haku:Fast Hack
HayaiHaku is offline   Reply With Quote