On Tue, Jun 22, 2010 at 12:23 AM, claudio canepa <[email protected]> wrote:
>
>
> On Mon, Jun 21, 2010 at 3:51 PM, claudio canepa <[email protected]> wrote:
>>
>>
>>
>> I think you can do:
>> action = JumpBy(...) + CheckCollisionWithTile(...)
>>
>
>
> Sorry, must be
> action = JumpBy(...) | CheckCollisionWithTile(...)
> this way in each step the collision detection will be called
> --
> claudio
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cocos2d discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/cocos-discuss?hl=en.
>
running test/test_action_non_interval.py gave the following errors:
Traceback (most recent call last):
File "test_action_non_interval.py", line 147, in <module>
director.run (main_scene)
File "../cocos/director.py", line 437, in run
event_loop.run()
File "/usr/lib/pymodules/python2.6/pyglet/app/xlib.py", line 94, in run
sleep_time = self.idle()
File "/usr/lib/pymodules/python2.6/pyglet/app/__init__.py", line 187, in idle
dt = clock.tick(True)
File "/usr/lib/pymodules/python2.6/pyglet/clock.py", line 696, in tick
return _default.tick(poll)
File "/usr/lib/pymodules/python2.6/pyglet/clock.py", line 303, in tick
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "test_action_non_interval.py", line 125, in spawn_bullet
chase_worker = bullet.do(Chase(self.green_obj, fastness_bullet))
File "../cocos/cocosnode.py", line 639, in do
a = copy.deepcopy( action )
File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.6/copy.py", line 338, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.6/copy.py", line 338, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.6/copy.py", line 323, in _reconstruct
y = callable(*args)
File "/usr/lib/python2.6/copy_reg.py", line 93, in __newobj__
return cls.__new__(cls, *args)
TypeError: __new__ expected at least 1 arguments, got 0
Even after updating to r979, it still gave this error.
--
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en.