Hobbies And Interests
Home  >> Internet Games >> Online Games

Tutorial on Platforming in AS3

Platform games have been around for years. As typified by one of the original ones, "Donkey Kong" created by Nintendo in 1981, platform games present gamers with the basic challenge of jumping from one platform to the next without falling or running into obstacles meant to eliminate your character from the game. ActionScript 3.0 (AS3) is the latest version of ActionScript and is the programming language of the Adobe Flash Platform, which assists programmers in creating interaction in their games and, more specifically, platform games.

Instructions

    • 1

      Create your character, which is the first step in creating a tutorial for your platform game in AS3 experience. Your objective in this step is to enable your character to move left and right as well as allowing it to jump.

    • 2

      Build your first level for your character to compete in your platform game. You will create blocks for your character to stand on in this stage of your game's development.

    • 3

      Program different items into your game now that you've developed your character and the level. In addition to the blocks, program your game so your character will fall when it is not standing on one of the blocks. You can also develop more items for your character to stand on while programming. Kenny Sun of Mr Sun Studios also recommends that you program your game at this point to move left and right as your character moves beyond the screen on either side.

    • 4

      Add various elements to your level. Create ladders, allowing your character to climb up after it has fallen off one of the platforms. Mr Sun Studios advises you create bumpers here as well. These are fixtures in your game that your character can run into and bounce back, but will not be able to run through. Your character will need to have a way to get over the bumper, like using a ladder or jumping from one platform to the next.

    • 5

      Build an enemy for your character. To make the object of the game more complex than simply getting from Point A to Point B by climbing and jumping, add an enemy character to create a variable that heightens the difficulty of your game.

    • 6

      Complete the level by adding incentives and a finishing point. As in "Donkey Kong," the goal is to get from the bottom of the uphill climb to the top. Do the same here by creating a finish line. Mr Sun Studios recommends providing incentives along the way, like gold coins.

    • 7

      Build a scoreboard to keep track of how participants fare in the game. Also make sure you provide a reset button that will reset the score when a new game is started.


https://www.htfbw.com © Hobbies And Interests