On Tue, Dec 23, 2008 at 12:17 PM, s73v3r <[email protected]> wrote:
>
> Since its not covered in the documentation, what is the proper way to
> create a Rectangle Map Layer in the background that does not scroll?

Take a look at test/test_tiles.py. In the __main__ part i did this
change to get what you want:

    scroller = tiles.ScrollingManager()
    test_layer = tiles.load('road-map.xml')['map0']
    scroller.add(test_layer)
    scroller.add(car_layer)

    fix_layer = tiles.load('road-map.xml')['map0']
    fix_layer.set_view(0,0, 600,300)
    main_scene = cocos.scene.Scene(scroller)
    main_scene.add(fix_layer, z=10)
    keyboard = key.KeyStateHandler()
    director.window.push_handlers(keyboard)

This created another layer, but i didnt add it to the
ScrollingManager. But i set the viewport for it (using set_view) so it
know what its drawing.

Regards,
Lucio.

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