Kamozo
May 17, 2016 - 20:07
Hello, I've got a problem.
I've recently been learning how to use Actions in the scene module, and I feel like the way I'm going about it isn't the best way. There just seems like too much code for only a simple few tasks. Is there any way to condense what I've done or a more efficient way around it?
Help would be appreciated, thank you.
up = Action.move_to(self.size.w/2, 350, 9,TIMING_EASE_BACK_OUT)
s = Action.move_to(100, 375, 4, TIMING_SINODIAL)
ss = Action.move_to(924, 375, 4, TIMING_SINODIAL)
mid = Action.move_to(self.size.w/2, 300, 5, TIMING_EASE_BACK_OUT)
sss = Action.sequence(s, mid, ss, mid)
SSS = Action.repeat(sss, -1)
SSSS = Action.sequence(up, SSS)
self.boss.run_action(SSSS)