Adobe Flash CS5 er et kraftig animasjonsverktøy som også kan brukes til å lage spill. Å lage et rakett-spill er ikke verre enn mange andre prosjekter du kan lage i Flash. Når du først har et grunnlag for denne typen spill, kan du gå videre til langt mer avanserte prosjekter. Målet med dette rakett-spillet er å finne en mynt, eller en annen samlegjenstand, gjemt et sted i banen.
var mainSpeed:Number = 7; //The speed of the character
var mainScore:Number = 0;
onEnterFrame = function(){ //this function will run every frame (needed for moving the character
if(Key.isDown(37) || Key.isDown(65)){ //if the "A" key or Left Arrow Key is Down
mcMain._x -= mainSpeed;//then the move the guy left
} else if(Key.isDown(39) || Key.isDown(68)){//if the "D" key or Right Arrow Key is Down
mcMain._x += mainSpeed; //then move the guy to the right
} else if(Key.isDown(40) || Key.isDown(83)){//if the "S" key or Down Arrow Key is Down
mcMain._y += mainSpeed; //then move the guy down
} else if(Key.isDown(38) || Key.isDown(87)){//if the "W" key or Up Arrow Key is Down
mcMain._y -= mainSpeed; //then move the guy up
}
}
mcCoin.onEnterFrame = function(){
if(mcCoin.hitTest(_root.mcMain)){
mainScore += 100;
this.swapDepths(999);
this.removeMovieClip();
trace(mainScore);
}
}