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

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

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

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

5、5设置移动速俣觊鄄幼度和角度,Party Hats.motion_turnright("角度") Party Hats.motion_movesteps("速度")

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