Thanks for that code T1ger, i have now gotten it to work but.... it only decelerates left, the right side dosnt seem to work?
Here is my code, I have tryed heeps of ways to get it to work but i cant.
Also thanks again T1ger, you'll notice its much shorter now
P.S. I also tryed the deceleration code with }else if ( rather than what i have now }else{ if (Code:onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { acceleration++; gotoAndStop(2); if (acceleration>speed) { acceleration--; } } else if (Key.isDown(Key.LEFT)) { acceleration--; gotoAndStop(1); if (acceleration<-speed) { acceleration++; } // **** Deceleration Code **** } else { if (acceleration<0) { acceleration++; } else { if (acceleration>0) { accerlation--; } } } _x += acceleration; }





Reply With Quote