@Lem wrote:
Hello!
I want to create a constant Layer that is not affected by the
replaceScene(scene);
method.so I have something like this (obviously
)
class Curtains : public cocos2d::Layer { //lots of code }
I add it to each scene and it looks ok, but when I replace the scene with
auto fadeScene = TransitionSlideInR::create(0.5f, scene);
It naturally moves with the scene as the scene's change. However I want it to stay there all the time.
Basically what I want to achieve is something like this:
The curtains should stay all the time at the same place and only the "inside" of the scene should move from right to left.
How could I achieve that? Is it possible?
Posts: 5
Participants: 3