Friday, March 5, 2010

onClipEvent (load) { var yPos = this._y;}onClipEvent (enterFrame) { if (_root.jumping == false) { if (Key.isDown(Key.UP)) { this.gotoAndPlay("seqJumping"); /* // This just plain doesn't work while(this._y<(yPos-30)) { this._y--; } */ /* // this jumps him up WAY too quickly all at once for(i=0;i<30;i++) { this._y--; } */ /* //hmm this only moves with keyboard interaction at all times... if (this._y != yPos-30) { this._y--; } */ } }}

now this is some good code. ummmm
this code is for jumping now we just need a super jump.
I found this on action script .org.


the winter break was great but not for this class we are way behind!!!!!!
the router must be returned GO SUPER SQUIRREL!!!!!!!!!!!!!!!!!!!!!!!!!!!

3 comments:

  1. Thank you for putting this code out for others to use. Is this code in AS2 or AS3? Just curious. Also, just for some fun info my teams name is Super Squirrel Alpha Beta. :)

    ReplyDelete
  2. Do you & Dakota understand the usage of "this" and "root"? I prefer to change onClipEvent functions to onEnterFrame functions. Good luck with your game!

    ReplyDelete
  3. I will use cheese wizard magic to catch and eat supa squirrel.

    ReplyDelete