Flash Tutorial For Simple Games

This is  a very simple tutorial about how to make simple flash game in Macromedia Flash . .  Here i demonstrate a penalty Shoot out game . It so simple . I upload a sample code and also a video tutorial helps you to do the same . This is very easy and simple . Just 5 steps .
The software i used for this is Macromedia Flash .
Lets Check the video First


onClipEvent(load){
speed=7;
isJumping=false;
jumpSpeed=0;
startY = _y
}
onClipEvent(enterFrame){
if(isJumping)
{
_y += jumpSpeed;
jumpSpeed+=1;
if(_y>startY )
{
_y=startY = _y
isJumping=false;
}
}
if(Key.isDown(Key.RIGHT)){
_x+=speed;
_xscale=100;
}

if(Key.isDown(Key.LEFT)){
_x-=speed;
_xscale=-100;
}
if(Key.isDown(Key.SPACE)){
isJumping=true;
jumpSpeed=-10;
}
}



Enhanced by Zemanta

No comments:

Post a Comment