Mid-Autumn Festival can make a wish Scratch work you seen it? Dodo little hands to easily create.

Comparative study? Wine in the sky. I do not know the sky palace, Jinxi is what years. I want wind go back, but was afraid Qionglouyuyu, standing above the crowd. Dancing clear shadow, like in the world.

Turn Zhu Court, low-chi households, according to sleep. There should be no hate, to do anything for a long time round? People have joys and sorrows, month also wanes, the matter ancient difficult wholly. Nung, moon and new moon.

 

Sushi is a "Prelude comparative study" by the occasion of the Mid-Autumn Moon, outlined a kind of bright, loved ones thousands of miles, the realm of grand scale aloof atmosphere, the joys and sorrows of this world to express its head.

 

Mid-Autumn Festival, a family-reunion holiday, visiting friends and relatives of children each happily, can play holiday does not say, but also there are various flavors of moon cake to enjoy. A beaming mall, everywhere Mid-Autumn Festival pictures, but these pictures are some of the lack of spirituality, the Mid-Autumn Festival atmosphere can not be fully reflected. If your baby will be programmed, you can follow this article can easily make a vow of beautiful works of the Mid-Autumn Festival.

 

Holiday elements and no less

Mid-Autumn Festival moon is the biggest highlight of all the works, our work is no exception, this must have. In order to make the moon appear less lonely, work for it to do add some leaves off. Poetry can not be less naturally, Chinese poetry mood is very beautiful. Coupled with a background of the night sky, a Mid-static works on the show out. But what this work is filled with the works of the same? Our work naturally can not be so monotonous, we need to add some elements characteristic for him to go, that's a meteor, and our work is of a meteor! So this is a vow of Mid-Autumn Festival can work!

Mid-work can make a wish you seen it?  Dodo little hands to easily create.

In addition to the meteor, we also added two rabbit ears, representing the moon in the rabbit.

 

Hands-on implementation logic, highlight the characteristics of the elements

The most prominent works is the big round moon, let's write a script logic to make this big moon appear more vivid and interesting.

Mid-work can make a wish you seen it?  Dodo little hands to easily create.

The moon is not just a right, here's how to use the clone ? Here the use of cloning AD to do the halo of the moon, and the moon continue to produce halos, diffuse slowly become larger, and then disappear, an animation effect, gleaming moon appeared in the works.

 

上面说为了让月亮看起来不那么孤单,为它添加了一些叶子陪伴,既然月亮能发光,如果叶子能随风而动就更好了。下面让我们为叶子添加动画逻辑。

Mid-work can make a wish you seen it?  Dodo little hands to easily create.

从逻辑中我们可以看出,叶子会画满的转动,在月亮蛋黄色的背景上,叶子动画显得格外的生动。

 

诗词的逐字显示,非常简单,切换造型就可以了,为了能让作品看起来更漂亮一些,我们为诗词添加了上下晃动的效果。来看看逻辑脚本。

Mid-work can make a wish you seen it?  Dodo little hands to easily create.

逻辑中有一个地方需要注意,在显示了一行诗词之后有一个停顿,让诗词表现出是一句一句的展示出来的。至于上下晃动这里就不再多说了。

 

两只兔耳朵放置到合适的位置上,执行切换造型的逻辑指令就可以了。

 

接下来是我们最有特色的部分,就是流星了。夜空中的流星有几个特点。1.数量不定,2.大小不定,3.掉落方向不定,4.划过天空的速度不定。这些特点我们都要实现,让流星为作品增加特色,让我们的作品可以用来“许愿”。流星角色使用的就Scratch素材库中的星星素材,在逻辑脚本中调整了它的大小。

Mid-work can make a wish you seen it?  Dodo little hands to easily create.

从逻辑脚本中可以看到,每次会产生1到5个流星,然后等待2秒钟,继续产生新的流星。流星的大小是10到20之间的随机数,这样就实现了流星大小不定的特点,然后把流星移动到左上角的一个随机位置,这就实现了流星产生位置不定的特点,当流星产生之后,会向右下角的随机位置移动,移动用时也是0.3到1秒之间随机的数值。通过这些指令逻辑的执行,流星的所有特点就都实现了。

 

从上面的脚本中可以看到,我们处理的都是点击月亮的广播消息,这表明所有这些动画效果都是在点击了月亮之后触发的。逻辑脚本自己添加一下吧。

 

展示作品,专心许愿。

至此,所有的逻辑脚本就都编写完成了,又会放出光芒的圆月,有逐字显示的诗词,更有随机出现的流星,一个唯美的中秋作品就这样诞生了,快让你的小伙伴们一起来看看效果吧。

 

In many cases, the children's minds there are a lot of creative ideas, but they suffer description is unclear, and no right to show the tools and skills, wasted a good idea. Learning children's programming so that children can be more convenient to show creativity, to whom Linyi Luozhuang learning program, do not waste each child an interesting idea, except for the primary stage of Scratch outside fun programming for middle and high school students in the Python programming class also started to recruit students. Programming will be the first step to control the future of children, early learning early benefit, hurry to register!

Transfer from Public Number:
whom Children's Programming

Published 352 original articles · won praise 252 · views 550 000 +

Guess you like

Origin blog.csdn.net/weixin_40897235/article/details/104023600