Back to Browse

Flash CS3 Game Tutorial : Making a shooting game

2.8K views
Oct 9, 2013
11:06

Enjoy here are the codes: In Frame One: stop(); score = 0; var areaX:Number = Math.round(Math.random()*550) var areaY:Number = Math.round(Math.random()*400) enemy1._x = areaX enemy1._y = areaY var areaX1:Number = Math.round(Math.random()*550) var areaY1:Number = Math.round(Math.random()*400) enemy2._x = areaX1 enemy2._y = areaY1 var areaX2:Number = Math.round(Math.random()*550) var areaY2:Number = Math.round(Math.random()*400) enemy3._x = areaX2 enemy3._y = areaY2 _root.enemy2._visible = false; _root.enemy3._visible = false; In Frame 2: stop(); In Enemy: on(press){ _root.enemy1._visible = false; _root.enemy2._visible - true; _root.score += 10; } Var in score: score ------------------------------------------------------------------ Comment, Rate & Sub P.S. For the enemy code change it about like i do on the vid for diffrent characters

Download

0 formats

No download links available.

Flash CS3 Game Tutorial : Making a shooting game | NatokHD