1/5/2024 0 Comments Gamemaker clean text wrapLet's jump right in and make our first object. The idea now is that the asteroids in our game will start of huge and then break into the medium and smaller parts as the player shoots them. When finished, make sure the origin for each of the sprites is set to Middle Centre. You can see some examples below (shown at twice the size required for the game): When finished, you can take a moment to draw the asteroids, again using the outline polygon tool to create some irregular shapes. All the sprites will have been created at the default image size, so you will want to change their size to be 16x16px, 32x32px and 64圆4px respectively (as shown at the beginning of this article). Call the sprites "spr_asteroid_small", "spr_asteroid_med" and "spr_asteroid_huge". So, for this, you'll need to create three new sprites, as we are going to make three different sizes of asteroid. We can now go on and make the asteroid sprites. You can see the sprite editor allows us to change this in several ways, but go ahead and select the Middle Centre option from the drop-down menu in the Sprite Editor. We want our ship to rotate around its middle, so we need the origin at the centre of the sprite.: We now need to set the sprite's origin, which is the value which will be used as its top-left position when it is drawn in-game. Once you're happy with the result, simply close the Image Editor workspace and the image will be saved to the sprite. Now we can draw the sprite using the Draw Polygon tool (be sure to click the top left of the icon to get the outline tool and not the fill tool): First you should probably enable the grid overlay and set the grid to 8x8px (this will help you to position the drawing tool): Our sprite is going to be a simple line-drawn polygon, much like an arrow head, so let's draw that now. You can open this by clicking on the Edit Image button, which will bring up the editor with a blank canvas ready for you to start drawing: With that done, the next thing to do is create our sprite in the Image Editor. You'll want to choose the Resize Canvas option and set it to 32x32px: To resize a sprite, you simply click on the Resize Sprite button to open up the resize window: You may now also need to resize the sprite, as for this game we want it to be 32x32px. In this case we'll call it "spr_ship", as shown in the image above. This will open the sprite editor and permit you to set the name of the sprite. To do this, go to the "Sprites" resource and click the right mouse button and select Create: The first sprite we'll make is the "ship" sprite for the player to control. With that done, we can now move on to the next part, which is to create the sprites that the game needs. For that you should open the Game Options now (from the Quick Button at the top of the IDE), and set the Game Frames per Second to 60: Now, before continuing, you should make sure that the game is set to run at 60FPS. Second we'll need some asteroids for the player to actually shoot at.First we'll need a ship for the player to control, and it will have to rotate and move forwards as well as shoot.What does a game like this need? Let's list the two most basic of the gameplay components: Our tutorial game is going to be called "Space Rocks", and as mentioned in the introduction, it's going to be a game about shooting asteroids and getting high scores: In general, before starting any project, it's a good idea to plan out what you want to achieve, even if it's in very broad terms, as that gives you something to work towards when you sit down to work. In this chapter, we're going to start building our game, but before we do that, we need to just take a moment to think about what we'll actually need. The tutorial itself is split into 4 parts which are listed below:įor those of you that have not used the GameMaker Studio 2 IDE before, we have prepared a short introductory video here, and you can also check out the Quick Start Guide in the manual. We know that getting started with any new skill or tool can be tough at first, which is why this tutorial will attempt to make the introduction to game making as smooth and fun as possible. Almost all novice programmers make this game at some point, as it's a fun game to play, but fairly simple to make and shows all the most basic components of a game - things you'll find in the most basic arcade game up to the most advanced RPG - like movement, logic and gameplay design. The game we've chosen for this tutorial is a typical asteroid shooter game, which we'll call Space Rocks. This tutorial will take you through the process of creating a small game using GameMaker Studio 2, with the aim to get you familiarised with the interface and the work flow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |