Sync Tutorial - Making Enemies
Save this graphic as a .png.  It will be our enemy ship.  Note that this is a cell image so it has four different frames associated with it.
Double Click the image under the create tab to enter the image settings dialog box.  Change the Image mode to a Cell 1 x 4, and save the settings.  Add frame one to the scene (the cell with the three curved lines on it which will represent its health).
Change the layer of the Enemy Ship to layer 8.
Change the Class of the Enemy Ship to EnemyClassA.
Turn on the Send and Receive Collisions, and turn off Send and Receive Physics.
Now we are going to change some of the parameters for the Enemy Ship.  Under the Edit Tab, change the following settings.
Also check the receive callbacks option under the Collision tab.
Now we are going to edit the enemy's collision shape, and prepare it for scripting.
Also note that collisions can not be concave.
Alright we are now ready to start scripting the enemy.
Next Page
Previous Page