Hey, thanks for your time.
I upgraded to .5rc0 and verified:
>>> import cocos
>>> print cocos.__version__
0.5rc0
but I am still running into this problem. It creates the screen just
fine but the moment that it updates mouse position, Bam:
File "viewr.py", line 231, in update_view_bounds
scx , scy =
world_to_screen(scroller.restricted_fx,scroller.restricted_fy)
AttributeError: 'ScrollingManager' object has no attribute
'restricted_fx'
I delved into the library and I do indeed see a self.restricted_fx in
ScrollingManager, but it is only referenced inside of set_focus, and
it does not call set_focus after until after it looks up
restricted_fx. Am I missing an init step?
Thanks,
Andy
On Oct 3, 10:41 pm, claudio canepa <[email protected]> wrote:
> On Mon, Oct 3, 2011 at 11:24 PM, Andy <[email protected]> wrote:
> > I am looking at Protoeditor, I think I have it mostly figured out,
>
> but...
>
> > What is this restricted_fx variable that is called from an instance of
> > cocos.layer.Scrolling_Manager().
>
> when you call scrolling_manager.set_focus(x,y) it will try to scroll the
> managed layers so that world coordinates shows at screen center; except
> when doing so will show forbidden areas in the managed layers. In that case,
> (restricted_fx, restricted_fy ) will be the woorld coordinate under the
> screen center
>
> > My scroller doesn't have that variable, and I think faking it is
>
> breaking things.
>
> You are running an old cocos, probably 0.3.0
> ScrollerManager.restricted_fx is present since cocos 0.4.0
> Should you upgrade, I recommend cocos 0.5rc0
>
> --
> 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.