claudio canepa - thank you, will do exactly that from now on!!

On Mon, Jun 18, 2012 at 11:07 PM, Richard Jones <[email protected]>
 wrote:

> On 19 June 2012 07:06, Donahue Trevor <[email protected]> wrote:
> > ...
> > File "/home/trevor/cocos/cocos2d-0.5.0/game/util.py", line 51, in step
> >     dx, dy = self.target.velocity = self.collide_map(map, last, new, dy,
> dx)
> >   File
> >
> "/usr/lib64/python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/tiles.py",
> > line 780, in collide_map
> >     for cell in map.get_in_region(*(new.bottomleft + new.topright)):
> > AttributeError: 'builtin_function_or_method' object has no attribute
> > 'get_in_region'
> >
> > so I guess it works but not for this type of variable... can someone
> tell me
> > what's the problem?
>
> I'm going to guess that the "map" you've passed into collide_map isn't
> the actual map but rather the built-in map() function. Just a variable
> naming mismatch in your code.


that solved it! thanks a lot!!!


-- 
Thanks,
Donahue Trevor

-- 
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.

Reply via email to