[font=verdana, arial, helvetica][size=2]This is my first post in Kirupa forum. Please help me with this.[/size][/font]
[font=verdana, arial, helvetica][size=2]I want to rotate an arrow in keyPress. This is working but I don’t want to move it so fast.
Here is what I have done:
I have created a movie clip and named it “arrow”
Here is the code that I am using in the first frame:
arrow.onEnterFrame = function() {
with (arrow) {
if (Key.isDown(Key.RIGHT)) {
_root.arrow._rotation+=90;
}
}
}
I want to slow the speed because once anyone press the right arrow key the arrow (graphic/movieclip) starts moving very fast.
I tried to decrease the FPS but that is makin the movie very slow.
I have also attached the .fla file.
Please help me with this[/size][/font]