Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17109

Can I make an Overlay that is not affected by replace scene?

$
0
0

@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 stuck_out_tongue )

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

Read full topic


Viewing all articles
Browse latest Browse all 17109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>