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

ParallaxNode with player inbetween

$
0
0

@digimikeh wrote:

Hi friends…

It is time to use ParallaxNode for my game, according to the docs, it seems easy to setup, what i want to do is to make my player walk in middle of two layers:

------------------ Background layer ------------------- (moves slowly)
---------------------- Player ------------------------- (moves normal)
------------------ Foreground layer -------------------- (moves fastly)

can this be done ?.. if so, how should i set sprite layers?.. my player is currently in 0, background is set to -1 and foreground is 1, both layers are child of a ParallaxNode… Player is child of scene.

Of course Player is controlled by keyboard, and is not part of the Parallax node…

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17118

Latest Images

Trending Articles



Latest Images

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