Building a Flash game with Actionscript 3
Author: Bill Trikojus
This tutorial will show you how to plan and develop a basic drag and drop Flash game using Actionscript 3.0 and the Model View Controller (MVC) design pattern.
Introducing the project and the tutorial
Launch Part 1
Launch Part 2
Launch Part 3
Launch Part 4
Launch Part 5
Launch Part 6
Launch Part 7
Launch Part 8
Launch Part 9
Launch Part 10
Launch Part 11
Download the finished source file here
For more on the Model View Controller and other Design Patterns in Actionscript 3 check out 'Actionscript 3 Design Patterns' by William Sanders and Chandima Cumaranatunge.
Share
Like this? Click a link below to share it...Subscribe and Download

Comments
2008-09-09: bong said:hey thanks for this ... this is really gread can you post an iphone or downloadable?
2008-09-09: Bill Trikojus said:
it should eventually appear on the Swinburne Podcats so just subscribe to that.
cheers
2008-09-09: bong said:
ok thanks dude.
2008-11-11: Raul said:
Bill, this is a great tutorial. Do you know when it will become available in the Podcast sections?
Thanks!
2008-11-11: Bill Trikojus said:
thanks Raul. It should be up by the end of the year.
Cheers
2008-11-16: Kevin Carbonaro said:
Thanks for a great tutorial. Although I did not understand how the code works as I am not experienced in using flash let alone programming action script, I did learn a lot about how everything is separated into manageable chunks. Hopefully I'll find some time to learn more about AS3 and try to code my first simple flash game. Thanks again :)
2008-12-12: Inderdeep said:
Thanks Raul
I was searching for how to make MVC structure using AS3. Now I have come to know...
You have done a great job ... I am thankful to you..
2008-12-12: Inderdeep said:
Oh sorry Name mistake in previous post
Thanks Bill......
Thank you for this great tutorial
2009-02-03: moora said:
Finally I find something great about MVC. Thanks alot for this great tutorial!
2009-02-28: gamedummy said:
I finally found a great tutorial on how to create a game in flash from beginning to end. Do you have a tutorial on how to keep track on scores and lives?
2009-03-04: Bill Trikojus said:
There are a couple of AS1 game tutes that should cover that.
http://www.swinburne.edu.au/design/tutorials/flash-video-tutorials-as2.php
cheers
2009-04-10: Sam said:
I am confused. Are the files downloaded from the "Download the finished source file here" complete? Should they be working? Mine are not.
2009-04-18: mr.mongkol said:
gamedummy
2009-05-26: michael said:
Thanks Bill for the great tutorial !
I was wondering why you put the Timer into the TimerView, wouldn't it be better to put the Timer directly in the TimerModel? Then I was wondering, if it's possible to avoid the fact that the clothingItemView has to know about all the DropTargets. Is there a way to get the Drag'n Drop functionality out of the clothingItemView?
Thanks a lot!
2009-08-20: jon said:
Bill thank you very much for this.
2009-08-31: David Doull said:
excellent tutorial!
2009-08-31: Bill Trikojus said:
Glad you enjoyed it. Working on some more simple as 3 game tutes now - should be up over the next couple of weeks.
cheers
2009-09-22: Douwe said:
hi, thank u for your great tuts, these are the best tuts around ATM, please keep on making more im watching the video`s every time i forgot something.
but now i have a little problem. ok here we go.
-----------------------------
im building a Asteroids game, the ship is flying and the enemy are attacking too. now the problem is, i build a so called SPEEDUP in the movieclip of the SHIP on the timeline, now when i HITTEST with the SPEEDUP the timeline goes to the ship with the shield around it. that all works good but when i hittest the enemybullets with the shield i want the enemybullets to hit the shield but it says the shield is NULL. but when i TRACE the SHIELD out it says it is of the SHIELD-CLASS. i dont know what the problem is anymore. can u please help me???
2009-09-22: douwe said:
hi again,
basically what i want is the enemybullet to hit the shield when the frame number( in this case its ( "shieldon" ) is changed.
i thryd it with IF ELSE statements but i dont seem to get it right.
if
(currentLabel == "shieldon"){
trace(Shield);
} else if
currentLabel != "shieldon"){
trace(target);
this works fine i get a trace on both when it changes frames but when i try to get a hittest in there it doesnt work anymore please help me.
im pretty new to cs4 as 3.0 so i cant solve the problem on my own.
2009-09-22: Bill Trikojus said:
I'm flat out at the moment. Please post this on a forum such as actionscript.org.
2009-09-22: douwe said:
oh, oke ill try thanks for the link
2009-09-28: douwe said:
hi there, what is the best way to let like 10 enemy`s spawn??
i made a shooting game and i want to make some new levels.
in level one i want 10 enemy and when u killed them the level is over and u goto lvl2 or if u get killed u get gameover and go back to the main menu.
i placed all my enemys in an array but they keep on coming.
thanks.
Post a comment
Garbage posts and SPAM will be deleted.
