Starting the project
Once you have started a new project, you need to change the layout size to 640, 480
. Then, we need to add some art. The first thing we need to add is the player. Find a circular graphic and add the sprite. Make your sprite 50 by 50 pixels and change its name to Player
.
Your layout should look like the following screenshot:
It's really important that you name the player as well as set the size, because when you make a lot of sprites, it can get confusing later on. Imagine if you had a game with 200 sprites and they were all called sprite1, sprite2, and so on; it would get confusing really fast. Whenever you set the size of an object, it is best to set the size in Photoshop or another program. When you change the size of images in game engines, the images can be distorted and as a result, they do not look good.
The next thing we need to do is create a background. In order to do this, we need to add another layer to the game. This can be done by performing the following...