Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
https://www.youtube.com/watch?v=wkxQ481Bx0Q
http://www.instructables.com/id/Make-your-own-Super-Mario-game/?ALLSTEPS
source=univ&sa=X&ved=0ahUKEwi2nejisuPOAhWMKY8KH
SXdDzcQsAQIGg#imgrc=JQTryB62uSVoXM%3A
http://actionscript.wonderhowto.com/how-to/make-yourgame-character-jump-with-flash-cs4-377747/
http://www.good-tutorials.com/tutorials/flash/gamedevelopment?page=3
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
(speed<1 &&
speed = 0;
if
speed>-1
&& !attacking) {
this.gotoAndStop("idle");
}
if
jumping
}
if
(jumping) {
this.gotoAndStop("jump");
this._y
jump
-=
-=
jump;
.5;
(jump<0) {
falling = true;
}
if (jump<-15) {
jump = -15;
}
}
if
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/
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