for the life of me i cannot get this darn ship to move! i have got it to a point where it doesn't say either "**Error** Symbol=ship, layer=Layer 1, frame=1:Line 1: The class or interface 'ship' could not be loaded. Total ActionScript Errors: 1 Reported Errors: 1" or have any problems with my brackets, but it still won't move and there is apparently no error! This is my code:
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x - velocity;
}
if( Key.isDown(Key.UP) )
{
_y = _y - velocity;
}
if( Key.isDown(Key.DOWN) )
{
_y = _y + velocity;
}
}
}
742 on first try, and TheRebel444, the hints do work, but if you are using small or even medium hints you have to find the spot which is moving and hinting that it is a difference, if you still have problems, try the big hints ;)