Hello everyone, kso im trying to make a shooter game. I have read the shoot-toreals on kongragate and Newgrounds and neather of it help me when it gets down to the code . . . . this is what i have so far.
Quote:
class Ship extends MovieClip
{
var speed;
function onLoad()
{
speed = 10;
}
function onEnterFrame()
{
_x = _x + speed;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + speed;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x - speed;
}
if( Key.isDown(Key.UP) )
{
_y = _y - speed;
}
if( Key.isDown(Key.DOWN) )
{
_y = _y + speed;
}
}
}
The I have checked for syntax errors with the auto checker and it says "There Are No Errors In Your Script", but when I test it out my ship does not move !
If you know a bit of AS2.0 and can help PLEASE coment !
thank you .