Type panel question

PS_VITA

Active member
Hi guys,

Have any of you used type panel  entities to create a paralax backgroundd or foregrounds?

I know we can use fglayers for such efforts (and adjust the z values) but I want to have such backgrounds or foregrounds as entities so I can destroy them or change them whenever I require and have more flexibility.

Thanks
 
Of course you can do this... that's exactly why panel type exists. It is better to use layers if you can, but there's nothing stopping you from using entities.

Here's an old example. This stage has 12 scrolling layers total, and all but the walking area are animated. At the time, it was built entirely with panel entities.

[YouTube]https://youtu.be/WMH7knXt0UY[/YouTube]

One thing to note - panel entities are not absolutely perfect about scrolling. They are occasionally 1 pixel off compared to layers. That intermittent 1 pixel difference can and will stand out if you don't design for it.

DC
 
From that video, if you were to walk backwards would the panels scroll the opposite way, sorta tracking you?

Or is that old demo only meant to scroll forward and players can't backtrack?

Because now I want to know how can add I z values similar to the stage code below but using panels.
So I can get that background movement while tracking the playet via adjustments of the z values.

Similar to this code below but for panels not fglayers.
Code:
      fglayer    data/bgs/lev0/ff.gif   200   -0.1            0                0                 -8                 0                 0                 -1              1                 1


   


Thanks
 
Scolling in all directions is supported, I already implicitly answered this when I said you can build a stage with panel types.

As for the Z aspect, models are models. Set up the Z position same as you would any other on screen entity.

DC
 
Back
Top Bottom