What steps will reproduce the problem?
1. Sleep(0.5) + Repeat(rot)
2.
3.
What is the expected output? What do you see instead?
sequence with a Repeat() raises an exception:
raceback (most recent call last):
File "test_sprites_without_cocos.py", line 52, in <module>
sprite.do( place + blink + bz*2 + fadeout + Repeat( fadein + rot + move
+ scale + move + rot) )
File "../cocos/actions.py", line 260, in __add__
return Sequence(self, action)
File "../cocos/actions.py", line 221, in __init__
self.init(*args, **kwargs)
File "../cocos/actions.py", line 812, in init
self.duration = self.one.duration + self.two.duration
AttributeError: 'Repeat' object has no attribute 'duration'
Expected:
Exception message shall be improved (or, if possible, support Repeats
inside a Sequence :)
Original issue reported on code.google.com by ricardoq...@gmail.com on 28 Mar 2008 at 11:32
Original issue reported on code.google.com by
ricardoq...@gmail.com
on 28 Mar 2008 at 11:32