I have been trying to get this working with rubber edges and simply getting odd results. I am doing something wrong, but do not understand what. Please could someone help me.
As I understand it, this would be a reasonable setup:
Create a new scene. In the scene init method set up the scene, this involves:
-> Create a new CCLayerPanZoom object via the node method.
-> Set the mode to sheet mode
-> Create a background sprite.
-> Set the background anchor to (0,0)
-> Set the position to (0,0) (this is the default, so this step can be skipped).
Now this is where I get confused and make mistakes I think.
To get the rubber edges:
-> set the panBoundsRect to (0,0,1,1) or (0,0,w,h) where w,h are the width and height of the background respectively.
I have tried both of these with no successes. The bottom left rubber edge works correctly, but not the upper right. Do I need to set the content size of the CCLayerPanZoom object?
I am sorry if these are basic questions. I have tried to follow the readme and the sample project file that contains many "tests", but I am getting lost in what are the essential details and what are to make the example with lots of tests work.
Any help is appreciated.