thegooglecodearchive / los-cocos

Automatically exported from code.google.com/p/los-cocos
0 stars 0 forks source link

Sequence with a Repeat() throws ugly and excpetion #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
for now, an exception. 

Original comment by lucio.to...@gmail.com on 29 Mar 2008 at 12:16