Checkkeys Problem

Hi - i have got some of the code to work from my previous post, i have adapted the code from the vertical shooter tutorial. The MC ‘bcar’ rotates, but it does not move forward - any ideas?? Cheers

Here is code:


[COLOR=gray]//variables[/COLOR]
 
[COLOR=blue]var RotSpd = 3[/COLOR]
[COLOR=blue]var FwdSpd = 2 [/COLOR]
[COLOR=blue]var bcarX = _root.bcar._x; [/COLOR]
[COLOR=blue]var bcarY = _root.bcar._y;[/COLOR]
 
[COLOR=gray]//movement[/COLOR]
 
[COLOR=blue][COLOR=darkgreen]function checkKeys() { [/COLOR]
[COLOR=blue]if (Key.isDown(Key.RIGHT)) {[/COLOR]
 
 _root.bcar._rotation += RotSpd;[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=blue][COLOR=darkgreen]if (Key.isDown(Key.LEFT)) {[/COLOR] 
 
 _root.bcar._rotation -= RotSpd;[/COLOR]
[COLOR=blue]} [/COLOR]
[COLOR=blue][COLOR=darkgreen]if (Key.isDown(Key.UP)) {[/COLOR] [/COLOR]
 
[COLOR=blue]var deg =(_root.bcar._rotation*(math.PI/180))[/COLOR]
[COLOR=blue]bcarX + FwdSpd*math.sin(deg)[/COLOR]
[COLOR=blue]bcarY - FwdSpd*math.cos(deg)[/COLOR]
 
[COLOR=blue]}[/COLOR]
[COLOR=blue][COLOR=darkgreen]if (Key.isDown(Key.UP)) {[/COLOR] [/COLOR]
 
 
[COLOR=blue]var deg =(_root.bcar._rotation*(math.PI/180))[/COLOR]
[COLOR=blue]bcarX - FwdSpd*math.sin(deg)[/COLOR]
[COLOR=blue]bcarY + FwdSpd*math.cos(deg)[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=darkgreen]function updatePawel() { [/COLOR]
[COLOR=darkgreen]bcar._x = bcarX; [/COLOR]
[COLOR=darkgreen]bcar._y = bcarY; [/COLOR]
[COLOR=darkgreen]}[/COLOR]
[COLOR=darkgreen]this.onEnterFrame = function() { [/COLOR]
[COLOR=darkgreen]checkKeys(); [/COLOR]
[COLOR=darkgreen]updatePawel(); [/COLOR]
[COLOR=darkgreen]}; [/COLOR]

[COLOR=black]Thanks again[/COLOR]