AS3: Avoider game, part 12, and a new project
The latest post at MichaelJWilliams' blog brings his AS3 Avoiding game tutorial to an end with part 12 ...or does it?
This final segment details garbage collection, the nitty gritty part of game development that's important to you, but doesn't bother the players that much, until they notice the lag that inevitably comes from leaving each of those enemies onstage...
Anywho, it's a must-read and a nice tie-up-the-loose ends post, and this series of tutorials is once of the best out there.
Now, why may it not be coming to an end?
Myself and Michael shall shortly be launching a new site geared around the wonderful Avoiding game, hosting both our tutorials amongst other things, and we'd love for you to get involved! Perhaps you have an avoiding game you've written and want to show it off, or you want to share the secrets to that interesting feature you've worked in, throw us an email or hit me up in the comments for this post and we'll get back to you. Stay tuned for more information :)
AS3: Avoiding Game Tutorial, pt.11
Here we go, another interesting instalment in MichaelJWilliams' AS3 Avoiding game tutorial, part 11, covers saving and loading shared objects in AS3. Handy for keeping highscores, level progress and stats. Make sure you check it out!
AS3: Button Mashing Game
You may or may not recall, a long time ago, I wrote a tutorial on how you could create a button mashing game in AS2. (Yes, I also promised more parts to it and didn't deliver, eep!) And a little while ago, someone commented asking for an AS3 conversion.
Now, I'm still not confident enough with AS3 to go writing game engine tutorials with it, so I leapt over to the forum and asked if anyone there would take on the challenge.
Luckily for me, HiddenSpartan did, and has very nicely allowed me to post it up here on the blog.
You can grab the source at HiddenSpartan's DeviantART page, here, or download it from FH, here. Remember to give credit if you use it!
AS3: Avoiding game tutorial parts 8, 9 and 10
Ok, so last time remember how I said I couldn't blog about these fast enough?
I wasn't lying :P
MichaelJWilliams has been rather busy with his continuation in AS3 of our Avoiding game tutorial, and since my last post has released parts 8, 9 and 10! Covering Preloaders, Music, Sound Effects and Multiple Levels, these installments are a valued addition, and you should definitely go check them out!
AS3: Avoiding game tutorial pt.7
It seems MichaelJWilliams is releasing these tutorials faster than I can blog about them now!
Part 7 of Michael's translation of our AS2 Avoiding game tutorial series has now been released over on his blog, and as per usual, I highly recommend it! In this installment, Michael talks you through adding Keyboard control to your player.
(Note: It's not really a translation anymore, he's overtaken us in features now!)
Meanwhile, I'll hijack the bottom of this post to remind any readers who aren't aware, we do have a forum, where help and feedback can be gotten quicker than in comments, or email, and from a wider range of developers. So I suggest you go and check it out!
AS3 Avoider: Updates and Part 5
Hey everyone, you remember Michael James Williams? Writer of the AS3 version of our very own Avoiding Game Tutorial? He's back and he's blogging!
After taking time out of blogging to complete some contract work, Michael's writing once more and his first action has been to rewrite sections of the AS3 Avoiding Game tutorial (Parts 1, 2, 3 and 4) to increase efficiancy and reusability of code, and I fully advise you to check them out again. Michael says they'll be quicker to follow the second time round ;)
Also, he has released Part 5 of the AS3 Avodiing Game tutorial, which introduces Score, a Clock and will explain the concept of class inheritance to you. I know I'll be following it after checking through the first four parts again!
My experiences with AS3: Following the AS3 Avoider tutorial
Well, I followed this a while ago and right now I'm sat in a room with Daryl and co, with a PC, and nothing to do. So here we are , time to write up another experience!
So far I've only reached the end of part 1 of Michael James Williams's translation of our Avoiding game tutorial, and this is what I have so far:
(Yes it's supposed to stop like that :P)
Michael's writing style is excellent for beginners and old hands alike, following the tutorial I didn't feel patronised, even when the tutorial was explaining sections I already understood from my experience in other languages. I would most definitely reccomend following this tutorial to any beginner to AS3, as I came out of it with far more knowledge of the language than when I started.
I shall be following the other tutorials in the series, and I shall report back with my creation then. In the meantime I look forward to more posts from Michael J Williams!
Export an image in Flash as a .gif, .jpg or .png
It's all very simple.
1. Double click on the image you would like to export (select a frame to export all the contents of the frame)
2. Go to File -> Export -> Export Image
3. Save it somewhere, determine the filetype while you're at it
4. And you're done!
Add a quality toggle button in Flash
Most game players will often complain if they can't find a quality toggle button (although they rarely use it anyway). So it's probably a good idea to add a quality toggle button.
1. Draw something - this will be the quality toggle button (I recommend a "Q" for this.)
2. Convert it to a MOVIE CLIP (registration point - centre).
3. Go to the actions panel and apply the following code (ActionScript 2.0):
onClipEvent(load){
selection = 1;
}
on(release){
selection += 1;
if (selection >= 3){
selection = 1;
}
if (selection == 1){
_root._quality = "HIGH"
}
if (selection == 2){
_root._quality = "LOW"
}
}
4. ... and you're done! (Unless you want to add some more fancy stuff to it, this is just a tutorial showing the basic concept.)
Note: if you want to make your game sound a lot cooler and more professional, try renaming quality "anti-aliasing" or "smoothing" ;)
Another note: There are four different qualities: "HIGH", "LOW", "MEDIUM" and "BEST".
Yet another note: Qualities "HIGH" and "BEST" means high-end anti-aliasing, "MEDIUM" produces some anti-aliasing and "LOW" none.
The last note: Anti-aliasing could also be described as smoothing.
Make a preloader in Flash
Preloaders are a very good idea if you intend your flash game to go on the web. It's basically a page that is shown before the entire document has loaded. And they're also very easy to make!
- Create an empty keyframe at Frame 1.
- Draw your loading content inside it. This could include anything. What you put in this frame will be what the person playing the game will see when the game is loading. Ideally this should contain the word "Loading..." somewhere.
- Create another keyframe at Frame 2 and draw inside it. This will be what the player sees after the game has 100% loaded.
- Go to the actions for Frame 1 and enter the following:
if (getBytesLoaded >= getBytesTotal){
_root.gotoAndStop(2)
}
Now test your movie, click Simulate Download, and it should be working! Any queries, comment below and me or someone else will try to get back to you.
![[del.icio.us]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/digg.png)
![[Google]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/linkedin.png)
![[StumbleUpon]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Windows Live]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://frozenhaddock.co.uk/wp-content/plugins/bookmarkify/email.png)
