The Beginning

This is the start of the game engine that I am developing in Adobe Flash with ActionScript3.
It allows the character to move left(press left or A), right(press right or D), and jump(press up or W). Note: it is usually necessary to first click on the movie rectangle for the game to work.








Zelda is a trademark of Nintendo.
Original sprite artwork by SemiJuggalo.

A brief rundown of programming with ActionScript3:

Variables - hold information relevant to the game and the status of the objects in the game
The AS3variable declaration format:

var variableName:VariableType = defaultValue;

Examples:

zeldaJumping:Boolean = false;
leftKeyIsDown:Boolean = false;
moveSpeed:Number = 10;
zelda:MovieClip = new MovieClip();

Functions - manipulate the variables of the game and updates status information throughout gameplay
The AS3variable declaration format:

function functionName(inputName:InputType):outputType{...}

Examples:
zeldaJump():void{...}
checkIfKeysDown(event:KeyboardEvent):void{...}
moveCharacter(event:Event){...}


In this Flash movie, the character cannot jump when she is already jumping, because then she could jump the Moon and beyond! To prevent such inconsistencies, the status variables must be meticulously maintained so that at any given moment, everything you need to know about the character is available and valid.

Comments

aamagic2 said…
Nice work so far. I really commend you on the flow of the animation for the character (including the idle animation). The response of the character is also quick with not too much lag (which is very important. I take it that this isn't your first time using flash. Also, nice job on explaining what functions and variables to the audience whom have not programed before. Anyways, good luck with your project then.
Garrett Strobel said…
Very nice start, as aamagic2 said the animation does look fluid. I am excited to see the final product. Just some thoughts but maybe you could post to the blog some of the story/world/mechanics you are planning to implement for this game. A game featuring solely princess zelda is a great entry point but what mechanics about this game could be tweaked to make them unique?? In what ways does princess zelda approach the world differently than link? I think Links tri-force symbol is usually courage (at least in OoT and this is reflected in the gameplay of link in the world. " a young boy is called upon to a higher task yada yada yada.." Link than proceeds to gain more powerful items and go on more and more courageous trials.
I believe Zeldas tri-force piece is usually associated with love, could this become an interesting and not cheesy mechanic??
Zelda games are always defined by some cool or interesting element/mechanic.
OoT: Ocarina and past/future
MM: the masks and reversal of tme
WW: The boat and the wind
TP: The wolf transformation and wiimote use.
Sorry this post got kinda long but things kept popping into my head.
arturo said…
I think the jumping has to be proportional to how long you press the UP key. Right now it is only one value, just a thought...
Unknown said…
thanks for this adam

Popular Posts