I've created a nice 2D camera zoom system based on fighting and moving but it's zooming the parallax background as the same way of everything else and the effect it's not so cool. Is there a way to exclude the ParallaxBackground?
Is it possible to exclude ParallaxBackground from 2D cam zoom?
I'm trying to figure out this, so do parallax sprite are related to the x axis as well?
Not sure if this would work, but maybe have the parallax layer as a child of a CanvasLayer node and see if that cancels out the zoom?
@TwistedTwigleg said: Not sure if this would work, but maybe have the parallax layer as a child of a CanvasLayer node and see if that cancels out the zoom?
And if I dont have a CanvasLayer on the stage? :)
@"K-Storm-Studio Ltd" said:
@TwistedTwigleg said: Not sure if this would work, but maybe have the parallax layer as a child of a CanvasLayer node and see if that cancels out the zoom?
And if I dont have a CanvasLayer on the stage? :)
Not sure! I would think that using a CanvasLayer for the parallax layer would work, but if it doesn't then you may need to resort to something else. In theory you can just position and scale the parallax layer based on the camera zoom, but it could be messy to implement and maintain.
@TwistedTwigleg said:
@"K-Storm-Studio Ltd" said:
@TwistedTwigleg said: Not sure if this would work, but maybe have the parallax layer as a child of a CanvasLayer node and see if that cancels out the zoom?
And if I dont have a CanvasLayer on the stage? :)
Not sure! I would think that using a CanvasLayer for the parallax layer would work, but if it doesn't then you may need to resort to something else. In theory you can just position and scale the parallax layer based on the camera zoom, but it could be messy to implement and maintain.
this is the fact, how can I scale parallax based on zoom? Should I do that just manipulating position and scale value? So creating a function based on zoom.x value?
@"K-Storm-Studio Ltd" said:
@TwistedTwigleg said:
@"K-Storm-Studio Ltd" said:
@TwistedTwigleg said: Not sure if this would work, but maybe have the parallax layer as a child of a CanvasLayer node and see if that cancels out the zoom?
And if I dont have a CanvasLayer on the stage? :)
Not sure! I would think that using a CanvasLayer for the parallax layer would work, but if it doesn't then you may need to resort to something else. In theory you can just position and scale the parallax layer based on the camera zoom, but it could be messy to implement and maintain.
this is the fact, how can I scale parallax based on zoom? Should I do that just manipulating position and scale value? So creating a function based on zoom.x value?
Yeah, I would see if scaling the node based on the zoom works. You may also need to reposition the parallax layer after scaling.
@TwistedTwigleg said:
@"K-Storm-Studio Ltd" said:
@TwistedTwigleg said:
@"K-Storm-Studio Ltd" said:
@TwistedTwigleg said: Not sure if this would work, but maybe have the parallax layer as a child of a CanvasLayer node and see if that cancels out the zoom?
And if I dont have a CanvasLayer on the stage? :)
Not sure! I would think that using a CanvasLayer for the parallax layer would work, but if it doesn't then you may need to resort to something else. In theory you can just position and scale the parallax layer based on the camera zoom, but it could be messy to implement and maintain.
this is the fact, how can I scale parallax based on zoom? Should I do that just manipulating position and scale value? So creating a function based on zoom.x value?
Yeah, I would see if scaling the node based on the zoom works. You may also need to reposition the parallax layer after scaling.
and yes, unfortunately yes! :)