How to create a game on the Internet

How to create a game on the Internet

So, you had a desire to create own computer game. It is possible to go on more difficult path which assumes studying bases of programming on Delphi, C ++ and some other languages. However it is the labor-intensive process which is taking away a lot of time and forces. It is much simpler to use designers and ready engines for games from which you will be able to find the most part on the website www.gcup.ru. Let's consider creation of a game on the sample program of Game Maker

It is required to you

  • Game Maker program

Instruction

1. Character
At the beginning create the character of a game (we will call it, for example, obj_player). In order that he learned to go, in the Left button check collision of objects and shift on axis X for coordinates-4. Do the same in the Right button, having changed coordinates on + 4. Do not forget about change of spright. Now our character is able to go to the left-to the right.

2. Platform
Create a new object (obj_platform) which will become further the platform. At the same time do not forget to tick off Solid in obj_platform.

3. Gravitation
Again we come back to the character of obj_player. In the Step menu we select conditions as it is shown in the drawing.

Pay attention to the variable at the left. With its help the speed of falling can be limited up to 12.

4. Jump
For creation of a jump it is necessary to implement the jump variable by means of which the maximum quantity of pushes is set. In the create menu create the variable with jump=0 value. Variables are created by means of the button highlighted in the drawing in red color. At its transfer in "Actions appears the menu. Specify in it all necessary conditions as it is shown in the drawing.

5. In the press menu we take the same actions, as in the following drawings:

6. And some more steps in contact with obj_platform object. So, the main engine for our game is ready. It was necessary to register additional functions.

7. Ladders
The Up, Down and Step tabs will be necessary for us for creation of a ladder. Create a new object of obj_ladder. Further in the Step tab put down values as it is specified in the drawing:

8. We work with the Up tab (see in the drawing). We work with the Down tab the same way, only do not forget to replace y=-4 with y= +4.

9. Enemy
What game without villain? Therefore for our hero it is surely necessary the enemy. Create a new object of obj_enemy, further you pass into Create event. There create action and set the parameters similar to that are specified in the drawing.

Further we create an object of obj_rotate and we do it invisible. For this purpose it is necessary just to remove the Visible check mark.

10. Murder of the main character
It is the most crucial moment: it is necessary to provide a possibility of murder of the character. For this purpose we will use the system of life and health which is built already in Game Maker.

In an event of Step follow these steps:

11. Health of the character.
Make in a game bayonets in the same way as you created the villain. Further put: Set the health relative to-1

12. So we will achieve that health of the character of a game will decrease at each contact to bayonets. When health there is less than unit, at the character one life will burn down.

13. At the last stage we will complete some strokes: let's make big level, we will register a possibility of tracking of the camera the hero. For this purpose in the room in a laying of views it is taken the following actions (see the picture).

Change Hbor and Vbor values. They are responsible for coordinates x and at at which achievement the camera begins to move.
Elements of creation of a simple platformer by means of Game Maker are that.

Author: «MirrorInfo» Dream Team


Print