You are on page 1of 7

Flash AS3 Simple Game 01: Setup

https://www.youtube.com/watch?v=wkxQ481Bx0Q

Make your own Super Mario game


by maddi_boi

http://www.instructables.com/id/Make-your-own-Super-Mario-game/?ALLSTEPS

Customized backgrounds , wallpapers,characters and much more


http://s1173.photobucket.com/user/Markeyruiz96/media/SMF2%20Custom
%20Backgrounds/Sunsetrockymountions_zpsirobppu8.png.html
http://bunnyziegs.deviantart.com/art/PM-TAB-Tattle-Log-Bros-552357585
http://blendmaster.deviantart.com/art/Console-Collective-1-Wallpaper-21495094

Flash: How to build AS3 Mario platform


game
http://grafik.my/tutorial/flash-how-to-build-as3-mario-platform-game/

high quality backgrounds for platform game


http://patthompson008.deviantart.com/art/Cartoon-ForestParallax-Background-414781977
brick.png for mario game
https://www.google.co.in/search?
q=brick.png+for+mario+game&newwindow=1&rlz=1C2CH
IH_enIN692IN692&biw=1236&bih=606&tbm=isch&tbo=u&

source=univ&sa=X&ved=0ahUKEwi2nejisuPOAhWMKY8KH
SXdDzcQsAQIGg#imgrc=JQTryB62uSVoXM%3A

Sidescrolling Platformer ~Part 2~


Scrolling the Background with the
Arrow Keys
https://as3gametuts.com/2011/11/30/platformer-2/

Make your game character


jump with Flash CS4
HOW TO

http://actionscript.wonderhowto.com/how-to/make-yourgame-character-jump-with-flash-cs4-377747/

Adobe flash cs4 Game tutorial : Jumping


https://www.youtube.com/watch?v=tGJ0m6oyv4w

http://www.good-tutorials.com/tutorials/flash/gamedevelopment?page=3

How to make a Platform Game source-code options


http://www.wildbunny.co.uk/blog/how-to-make-a-platformgame-source-code-options/
http://www.wildbunny.co.uk/blog/2011/12/11/how-to-make-a2d-platform-game-part-1/

http://www.wildbunny.co.uk/blog/how-to-make-a-platformgame-source-code-options/
Creating a Platform Game
https://www.kirupa.com/developer/mx2004/platform_game
2.htm
Platform games are an increasing popular form of game for online gaming. This tutorial will help
you on your way to creating your own by deconstructing a very simple game you see below:

[ the example of my game; refresh the page if you die or fall off ]

Use your arrow keys to have your character move and jump around. The space key fires your
weapon once you have it. Since this is more of a case study than a tutorial, I will go ahead and
provide you with the source to the above animation below:

Beginning
We will start off by drawing 2 objects on the stage and making them movie clips
(MCs).
The first MC is your character. For now, we will draw a circle. Draw your circle, select
it and press F8. Once you circle is a movie clip double click it. Then select all of the

shape. Press Ctrl + K and align the shape horizontally centered and bottom edge We
now need to give it an instance name, for this tutorial we will call it char.
Your next MC will be your ground. So, draw a rectangle about 20px thick underneath
your character, so when we add jumping he has something to fall on to. Once you
have created it give the instance name of ground.
Basic Movement
Now for our first bit of code, in a platform game, you will need left and right
movement. The following code also has friction in it. Friction gives the game a more
realistic feel:

Go down to the actions for your character movie clip and add this code:
onClipEvent
speed

maxmove

(load) {

0;

15;

}
(enterFrame) {
(_root.dead) {
this.gotoAndStop("dead");
} else {
speed *= .85;
if (speed>0) {
dir = "right";
} else if (speed<0) {
dir = "left";
}
if (dir == "right"){
this._x += speed;
_root._x -= speed;
}
if (dir == "left") {
this._x += speed;
_root._x -= speed;
}
if (Key.isDown(Key.LEFT)) {
if (speed>-maxmove) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(Key.RIGHT)) {
onClipEvent
if

(speed<maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
}
if (speed<1 && speed>-1 && !attacking) {
speed = 0;
this.gotoAndStop("idle");
}
}
}
if

Gravity and Jumping


Next up we need jumping. This code will give you jumping; it would be inserted after
the other key.isDown events:

(speed<1 &&
speed = 0;
if

speed>-1

&& !attacking) {

this.gotoAndStop("idle");

}
if

(Key.isDown(Key.UP) && !jumping) {


= true;

jumping

}
if

(jumping) {

this.gotoAndStop("jump");
this._y
jump

-=

-=

jump;

.5;

(jump<0) {
falling = true;
}
if (jump<-15) {
jump = -15;
}
}
if

The above code simulates jumping similar to the following image:

Onwards to the next page!

Flash platform game tutorial AS3


http://www.baruckis.com/?p=15#comment-308
Step by step AS3 translation of Creation of a platform game with Flash step
1.5
http://www.emanueleferonato.com/2008/06/22/step-bystep-as3-translation-of-creation-of-a-platform-game-withflash-step-15/

[TUTORIAL] AS3 Platform Game Part 2 (Platforms)

https://mokshalstudios.wordpress.com/2010/10/11/tutorial
-as3-platform-game-%E2%80%93-part-2-platforms/
http://www.newgrounds.com/dump/item/79d5d59196d815
9001eee34dc4ff43b4
https://mokshalstudios.wordpress.com/my-flash-games/

Adobe flash cs4 platform game basics : intro


https://www.youtube.com/watch?v=tSRNMHt_8JQ

Flash CS4/CS5 Platform Game Tutorial: Double jumping


https://www.youtube.com/watch?v=c4WJjFZevs8

Simple flash jumping tutorial!


https://www.youtube.com/watch?v=3lZ_-xW0_C0

Actionscript 3 Making the character to Jump

http://stackoverflow.com/questions/14816094/actionscript3-making-the-character-to-jump
AS3 How do you code a jump?
AS3 How do you code a jump? AS3 How do you code a jump?
How to do jump the character?
http://www.newgrounds.com/bbs/topic/1159118