Frontendplace Blog

Sharing Frontend developing ideas

  • Adds

Archive for November, 2008

Controlling walkcycle animation

Posted by info on 25th November 2008

Made this controller for a walkcycle in an educational flash game.
See:willie webwijs website

Took me a while to think about how I could do it. So made the walkcycle with 90 degree turn and stand and start in four directions put the frames after each other and marked every part (walkcycle, turn, stand, stopping, starting). Made an excel sheet with on one axe the animation cycle I needed to go and the other axe the current animation cycle. And converted this table into a two dimensional array in flash.
And on the cross I put the cycle I needed to jump to first after the current cycle has ended. Every time after I reached the end of the animationpart I look what the next part must be and jump to that. I will end at the target animation. and stop jumping. see: the animation controller here

Or see some other animation of this cute bot

Posted in 3D Tutorials | No Comments »

Centering html content vertical and horizontal

Posted by info on 1st November 2008

How to center your page in the middle and vertical align on center?

  • you need a width and a height of your page. 

    width:768px;height: 630px;

  • position is absolute
  • position top and left to %50:

    top: 50%;
    left: 50%;

  • compensate for the offset with the 1/2 of the width and height

    margin-left: -384px;
    margin-top: -315px;
     

an example see this page

Posted in Scripting | No Comments »