Kittenblock实例,改变变量制作图形特效
1、择角色,设计背景,Party Hats = Sprite("Party Hats")

2、设两个变量,如图所示
速度 = 0
角度 = 0

3、用画笔模块,清除画笔特效。Party Hats.pen_clear()

4、动到随机位置,重复执行图章效果,Party Hats.motion_goto("_random_")
while True:
Party Hats.pen_stamp()

5、置移动速度和角度,
Party Hats.motion_turnright("角度")
Party Hats.motion_movesteps("速度")

6、角色添加造型变化,
while True:
Party Hats.looks_nextcostume()
time.sleep(0.2)

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。