Newbie - Help with my shooter game

Hey.

I am constantly experimenting with ways in which I can solve my problems, I do not have a diverse range of skills in flash therefore do not know nor understand most ‘proper’ methods. Since I am doing this for college work I tend to shortcut as much as possible, as deadlines are top priority.

The scenario is… My game is a space shooter and I want my player to be able to change shields, this will allow them to shoot different bullets. What I planned to do was to simply move the one movieclip of the player off screen and replace it for the other one (I realise this is probably one of the stupidest ways of doing it but, its the only way I know of). Im ecountering problems… I have the following code:

function shieldcontrol(event:Event){
if (moveplayer1 == true)
{
mcPlayer.x= playertwo.x;
mcPlayer.y= playertwo.y;
moveplayer1= false;
}

if (pressx == true)
{
moveplayer1 = true;
pressx=false;
}

This code is only the foundations of what needs to be written, but I am encountering issues… the error in the output window states:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at my1942_fla::MainTimeline/shieldcontrol()

Please help guys, and if more info is needed be free to request it :slight_smile:

I appreciate all you guys input, THANKS! :azn: