![]() ![]() More Actor TypesĪnimations bring actors to life. We have our Ship Actor Type set up now, so it's time to move on to determining how our Ship, and the other Actor Types we'll create, can collide with one another. Note that there is a keyboard shortcut available for this, as well as the "Save Game" disk icon. Step 14: We want to save our Ship Actor Type (and the game) by clicking File and then Save Game. Note the Players Group is built into Stencyl and will appear by default on when we click the dropdown, so we don't need to Edit Groups at this point. You can read more about creating Groups here. If we want to create more Groups, there is an Edit Groups button on the right. Step 13: Set the Group to "Players", as shown. This will allow us to specify what our Ship can collide with and what it can’t. ![]() Step 12: Now we need to set the Collision Group that our Actor Type is a member of. Let's leave the "What kind of Actor Type?" option set to Normal, but set "Can Rotate? and "Affected by Gravity?" both to No. Step 11: The first page that will appear is the “General” page under Physics. Step 10: Now that we have our single Animation, we need to choose the correct Physics settings for our Ship Actor Type. Once ready, click Add and Stencyl will import the image as four frames of our Flying animation. This will split our image evenly into four frames separated by black lines, as shown below. Set the value in the “Columns” field to 4. Of course, Stencyl does not automatically know this, so we need to change some settings so the image is not imported as one single, large frame. In this case, Ship_flying.png contains four frames. Step 9: Individual "frames" of an Animation image are commonly stored in a single larger image. We want to open the "Ship_flying.png" image for this Animation (if you still need to download the assets, click here to download them). We should have saved and extracted the example assets earlier somewhere on our computer, so we should navigate to that folder. First we have to select an image to import click the Choose Image button. Step 8: The image importer dialog below will pop up for us. We will click on the "Click here to add a frame" box to open our image importer. Now that our new Animation has been named properly, let's give it some images. We need to erase "Animation 0" from the Name field and type "Flying" into it. As such, it is ideal for us to rename our Animation so that later we can easily identify what state it represents. Step 7: We are now looking at the Animation Editor for the new Animation, which by default will be named "Animation 0".Īn Animation typically represents a “state” that an Actor could be in, such as Walking, Running, Jumping, etc. Stencyl will create a new Animation for us and open it in the workspace. Click the large box with the dotted line in the workspace on the right (shown below). Since Stencyl opened the new Actor Type for editing in the Appearance tab, we are already where we need to be. To do this, we need to first create at least one Animation to hold the images. All images for an Actor Type are gathered in Animations, so we need to import images for these Animations. Step 6: Our Actor Type does not yet have any images in it, we need to fix that so it can be seen by players. Stencyl will create our new Actor Type and then open it for us. Step 5: We will see the "Create New." dialog appear (shown below). Step 4: Next, click the large box in the workspace on the right (shown below) to create our first Actor Type. Click the Actor Type button in the Dashboard menu on the left (under Resources, as shown). We’re going to start with our spaceship, which the player will control. Step 3: Now that we have a blank game, it’s time to create our Actor Types. ![]() ( ) - Step 15( Final touches) - Step 2: Create Actors ( ) Step 12 (Destroying Enemy Ships)- - Step 13 (Creating a Font). Introduction - Step 1 (Create a Game) - Step 2 (Create Actors) - Step 3
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |