Admin Admin
Posts : 20 Join date : 2010-04-03
| Subject: Skunk redesign? Mon Apr 05, 2010 5:45 pm | |
| "Avatar" style skunk, more typical of flash games? Werewolf skunk thing? Post suggestions/ideas for other skunk looks below! | |
|
tiadam
Posts : 4 Join date : 2010-04-06
| Subject: Re: Skunk redesign? Wed Apr 07, 2010 7:53 am | |
| I really like the werewolf style, but maybe give it a backpack / pouch (to put received items in) ? Or perhaps you could change the character model as the player acquires more items (ie display them on the model) ? | |
|
Michelle Guest
| Subject: Re: Skunk redesign? Wed Apr 07, 2010 10:58 am | |
| It would be really cool if we can have items/amor show up on the wolf. I'll look into that! |
|
Admin Admin
Posts : 20 Join date : 2010-04-03
| Subject: Re: Skunk redesign? Sun Apr 18, 2010 5:52 pm | |
| | |
|
Admin Admin
Posts : 20 Join date : 2010-04-03
| Subject: Re: Skunk redesign? Sun May 16, 2010 5:38 pm | |
| The code for movement works (no jumping yet). Press left & right arrow keys. ugly code - Code:
-
addChild(wolf);
//run left or right. The int's are the corresponding begin & end frames var rL_beg:int = 15; var rL_end:int = 22; var rR_beg:int = 23; var rR_end:int = 30;
var leftFlag:Boolean = false; var rightFlag:Boolean = false;
function wolf_right(e:KeyboardEvent):void { if (e.keyCode==Keyboard.RIGHT) { rightFlag = true; leftFlag = false; if (wolf.currentFrame < rR_beg || wolf.currentFrame > rR_end) { wolf.gotoAndPlay(rR_beg); } }
}
function wolf_left(e:KeyboardEvent):void { if (e.keyCode==Keyboard.LEFT) { rightFlag = false; leftFlag = true; if (wolf.currentFrame < rL_beg || wolf.currentFrame > rL_end) { wolf.gotoAndPlay(rL_beg); } } }
function wolf_stop(e:KeyboardEvent):void { if(leftFlag == true){ wolf.gotoAndPlay("idleLeft"); } if (rightFlag == true){ wolf.gotoAndPlay("idleRight"); } }
stage.addEventListener(KeyboardEvent.KEY_UP, wolf_stop); stage.addEventListener(KeyboardEvent.KEY_DOWN, wolf_left); stage.addEventListener(KeyboardEvent.KEY_DOWN, wolf_right);
| |
|
Sponsored content
| Subject: Re: Skunk redesign? | |
| |
|