alright well im getting into Flash games now but i hate learning actionscript because for some reason it never works, even with copy and pasting code still nothing, now im doing this script
onClipEvent (load) {
speed = 2;
}
onClipEvent (enterFrame) {
if (key.isdown(key.RIGHT)) {
play();
_rotation = 90;
_x+= speed;
}
if (key.isdown(key.LEFT)) {
play();
_rotation = 270;
_x-= speed;
}
if (key.isdown(key.UP)) {
play();
_rotation = 0;
_y-= speed;
}
if (key.isdown(key.DOWN)) {
play();
_rotation = 180;
_y+= speed;
}
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;
}
}
and so i copied and pasted this code from a tutorial on Flashkit.com, so its simple u just make a movie clip that has like a guy walking or something then put a stop () action to it, then go to the main timeline and put the movie clip on the stage and on the instance u put that code, simple enough right? wrong, i did exactly like that and it didnt work, so i dl the FLA that came with it, and its exactly the same way i had it i even replaced the MC in the download wit my movie clip and it worked and i put the other MC in wit mine and it didnt work, same code and everything, i mean unless im missing something very small wtf is going on? this pisses me off cuz this happens all the time :mad: does anyone have these problems as well? what could be wrong? btw when i checked the syntax and everything it said iwas correct and when i previewed it nothing showed up saying something was wrong or nothing the movie clip just stayed still rrrrr man i hate this.
Comments