Wednesday, December 24, 2008

How to Make Walking and Flying Object

Almost every games need a walking and flying objects. In 2D animation, walking and flying object is very easy to make. Basically, you have to draw several costumes for every walking and flying position of your object. For this time, I will show you how to make walking object and flying object with just twtutor 2-1o costumes only. This is enough for beginner.

From the default Costumes Folder of Scratch, you can find simple two different image of moving objects. I will pick flying bat for my example. You can use many kind animals within that folder.

The technique is to switch the display of our object's costumes so that we can imagine that it is moving. You can do this by using this simple blocknext costumesfrom Looks Palette. If we have more than two costumes, this block still can be used too. But you must remember that execution time of computer is very fast. If we are switching between costumes without delay, our object will move so quickly that can not be seen. So we must insert delay block wait between costumes. How long we must delay? It depends on your purpose. But typically not more than 1 second. Don't forget, at every turn of the costumes, we also moved the objects to step forward. You should use this blockmove from Motion Palette.

Now come the last question. How to automatically changing the direction of our objeSprite featurects when they are touching the edge? The answer is simple. You can insert block "if on edge, bounce", like what we have done with bouncing ball. But you must pay attention on the Rotation Style of Sprite which located in the top middle of Scratch console. There are three button from the top: can rotate, only face left right, and don't rotate. You must stutor 2-2elect the middle button that showed by red arrow so that the Sprite only can move left and right. If you choose the top button, every time our Sprite bouncing on the edge, it will be rotated 360 degree and become upside down. You can see how funny it is look.

Finally we should get complete stack of blocks for our sprite that make a whole walking or flying animation, like this. There are other way too, and ytutor 2-3ou can find it, but it is the easiest way. Remember, the more costumes you are using for walking or flying animation, you will get the result more smooth and compelling. In the professional games, animator can use tens of costumes for only just one Sprite!

3 comments:

  1. After gambling is out of your technique, you can now reap its benefits like being debt-free, your partnership with your family is restored, and you get back again the trust from the important men and women close to you and dwell a much more significant existence
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    pelangiqq
    hobiqq
    paito warna
    data sydney update
    data hk

    ReplyDelete