Hi, I’ve been searching online now to find a tutorial on how to create a game like this
http://pouetpu.pbwiki.com/Smf_640X480
I don’t have a lot of experience with action script I’ve only used flash for animations. I found 1 tutorial that was useful but it only gave code and text with out a .fla or images. If you could tell me what I need to do to accomplish this and where to put code ect. I would Greatly appreciate it.
Thanks in advance.
A general answer would be to make classes for the parts of the game like the player, baddies, map, coins, powerups, etc. Give them the functionality they require and assemble them in a document class.
Thank you for the reply but I don’t know how to make a class, could you please give me a quick example.
Thanks in advance.
If you really want to make a game in Flash, I highly suggest reading some of the books on Actionscript 3.0. To make a class in Actionscript you would do something like this:
package games.sidescroller.myGame {
class Player {
private var coins:Number;
public function Player() {
//initialize player
coins = 0;
}
//other functions
…
} //end class
}//end package
If your new to flash, I suggest that you start of with much simpler games than that… I’ve got two years of experience with actionscript and I tell you, it’s not as easy as it looks… But I can give you an example of a really simple game like this…
Its not best way to make a sidescroller game, but its good if you want to make a single level just for fun or as a school project… to make a sidescroller game, you need to make a level editer, know advanced actionscript, classes, packages, functions… the whole deal… ofcourse, if you love flash and actionscript, you’ll be able to do all this with practice and persistence… blah blah blah blah blah… enough talk… here’s the example…
Oh yeah, this fla isn’t made by me so all credits go to Nathan Stockton
[color=#282827]I agree with you !I support you .[/color]
Actionscript 3 Game Programming University was the most useful book for me, but I’m still mostly lost. It had a very simple/basic sidescroller example in it.