thegooglecodearchive / los-cocos

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

RandomDelay is not sequenceable #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. RandomDelay(5,10) + Rotate(350,3)
2.
3.

What is the expected output? What do you see instead?
RandomDelay() shall be sequenceable since it has a finite duration.

Instead, I see this:
 File "run_game.py", line 16, in <module>
    main.main()
  File "/Users/riq/progs/pywiic/trunk/lib/main.py", line 184, in main
    rotdel = RandomDelay(5,10) + rot + RandomDelay(5,10)
  File "/Users/riq/progs/pywiic/trunk/lib/cocos/actions.py", line 324, in
__add__
    return Sequence(self, action)
  File "/Users/riq/progs/pywiic/trunk/lib/cocos/actions.py", line 285, in
__init__
    self.init(*args, **kwargs)
  File "/Users/riq/progs/pywiic/trunk/lib/cocos/actions.py", line 941, in init
    raise Exception("You can only sequence actions with finite duration,
not repeats or others like that")
Exception: You can only sequence actions with finite duration, not repeats
or others like that

Original issue reported on code.google.com by ricardoq...@gmail.com on 1 Apr 2008 at 4:01

GoogleCodeExporter commented 9 years ago

Original comment by lucio.to...@gmail.com on 19 Apr 2008 at 3:31