Vous êtes sur la page 1sur 3

Main task instructions 

 
 You are trying to make your own Space Invader move. 
 This is complex stuff and is only for students who are working 
towards higher levels. 
 
Step 1  
Click on the black circle in your timeline.  Your Space Invader will be selected. 
 
 

 
 
Step 2 
Click ‘Modify’ and ‘Convert to symbol’ 
   
Step 3 
Give your symbol a name – call it ‘space invader’ and press OK 
 

 
 
IMPORTANT – have you followed the steps correctly?  If you have, you should 
see your space invader added to the ‘library’ on your screen. 
 

 
 
OK?  Then move on…. 
 
Step 4 
Press the F9 key on your keyboard – the ‘Actions’ panel should appear. 
 

 
 
Step 5 
 
Click on your space invader – you should see a blue line around it 
 
Step 6 
 
[This is the tricky part]  You need to add this code to the Actions panel 
 
onClipEvent(load){ 
  dir = 1 

onClipEvent (enterFrame) { 
  if (this._x>450) { 
    dir = ‐1; 
  } 
  if (this._x<0) { 
    dir = 1; 
  } 
  this._x = this._x+(10*dir); 

 
 

Vous aimerez peut-être aussi