Monday, June 6, 2016

Creating Your First Game!

Hello, everyone. I am John Jenkins, and in today's lesson I will be showing you how to create a game. This will be a very simple driving game. No scoring in this one. You will be moving around a blank screen in your car. The first step is to decide on an aspect ratio for your Animate game. I've stuck with the default 4/3 aspect.

Now, you can create the car. I have created it in three steps. First, I create half a car, lined up along the Y axis. Second, I break up that image, duplicate it and invert the copy among the X axis. Then, before, I make the final symbol, I rotate the car until it is lined up on the X axis, pointing to the right. This way, it will rotate properly when animated.

For the linkage section on the car, I put the folder in which the Actionscript 3.0 file for the car is, a period, and then I put the name of the Actionscript3.0 file, which should have the same name as the symbol itself.

For the actual document, I link it to the folder where the classes are, add a period, and then add the name of the main Actionscript 3.0 file. If you click on the screen, then the Properties menu should come up on the right. On the menu, there is a "Class" section. Add the information there. Remember to save your file.