Sunday, March 22, 2009

Updated Game

I updated the link in the previous post. You can now wear the shades! And lose health by walking over the black box. You can increase your health by drinking sodas. :)
Its a lot more scripting than I thought... for example:

// ||Waxon Script||
this.onEnterFrame = function(){

// character control
if(Key.isDown(Key.LEFT)){
dir = -100
_root.char._x -= 4;
_root.char._xscale = dir;
_root.char.gotoAndStop(2);
} else if(Key.isDown(Key.RIGHT)){
dir = 100
_root.char._x += 4;
_root.char._xscale = dir;
_root.char.gotoAndStop(2);
} else if(Key.isDown(Key.UP)){
_root.char._y -= 4;
_root.char._xscale = dir;
_root.char.gotoAndStop(2);
} else if(Key.isDown(Key.DOWN)){
_root.char._y += 4;
_root.char._xscale = dir;
_root.char.gotoAndStop(2);
} else{
_root.char.gotoAndStop(1); // idle
}

That is just to make the character walk around properly. This is not including when he bumps into stuff and his soon to come attacks.
Also the fonts are wrong and it doesn't always load properly.
More fixes to come!

2 comments:

Unknown said...

it works it works! i'm just a dork and didn't read the instructions. :P

i like the message when you can't leave the room. "there's nothing out there anyways" awww.

badonk-a-donk said...

I died! But at least I looked dang cool when i did. Nice sunglasses!