动作的步骤是
timeline
alpha
behavior
behavior.apply(actor)
timeline.start()
clutter.main()
如果是多actors,同时运行呢
timeline
alpha
behavior
behavior.apply(actor)
timeline.start()
timeline1
alpha1
behavior1
behavior1.apply(actor1)
score = clutter.Score()
score.append(timeline)
score.append(timeline1)
score.start()
clutter.main()
或者共用同一个timeline
timeline
alpha(timeline)
behavior
behavior.apply(actor)
alpha1(timeline)
behavior1
behavior1.apply(actor1)
timeline.start()
clutter.main()
甚至共用同一个alpha
timeline
alpha(timeline)
behavior(alpha)
behavior.apply(actor)
behavior1(alpha)
behavior1.apply(actor1)
timeline.start()
clutter.main()
更甚至共用同一个behavior
timeline
alpha(timeline)
behavior
behavior.apply(actor)
behavior.apply(actor1)
timeline.start()
clutter.main()
所以说呢,timeline,alpha,behavior都是可以共享的