Saline
05-20-2007, 12:02 PM
Alot of Actionscript Tutorials I have seen, didn't explain anything. They just give you a code. I made My own tutorial (http://swfup.com/file/10609#view) and I explained the code as best I could. If anyone is wondering the code I used is.
onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
_x -= 5
}
if(Key.isDown(Key.RIGHT)){
_x += 5
}if(Key.isDown(Key.UP)){
_y -= 5
}if(Key.isDown(Key.DOWN)){
_y += 5
}
}
onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
_x -= 5
}
if(Key.isDown(Key.RIGHT)){
_x += 5
}if(Key.isDown(Key.UP)){
_y -= 5
}if(Key.isDown(Key.DOWN)){
_y += 5
}
}