Hello Guest

Author Topic: Is parallax scrolling system built-in ?  (Read 3270 times)

outofspace

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Is parallax scrolling system built-in ?
« on: February 27, 2014, 06:39:08 pm »
Hi,

I'm new to 2D toolkit it quite an awesome package.

I been through the tutorials and docs to find the parallax scrolling feature but could not find it.  Is this something that we have to build ourselves ?

If it's not built-in, it really should be because it's quite a basic feature of 2D games. I looked around and found that Orthello and other 2D frameworks include this basic functionality out of the box.

Would you consider a request to add this feature if it's not already supported.  Having support for this very common functionality would make 2DTK that much more complete and full-featured so that we do not need to look further than 2DTK as the ultimate 2D framework.

Edit: Found a private thread.  Parallax + ortho camera demo, looks like a script that's not part of the toolkit and not well integrated with 2DTK.  Many people in the thread are having a hard time figuring out how to use it.  It would be so nice to offer a well designed Parallax system on par or even better than competing 2D frameworks.

Cheers.

 
« Last Edit: February 27, 2014, 06:48:48 pm by outofspace »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is parallax scrolling system built-in ?
« Reply #1 on: February 27, 2014, 09:17:38 pm »
tk2d doesn't have a built in parallax system, as there are so many ways to do this in Unity. Eg. you can get parallax for free by using a perspective camera. Sometimes its more efficient to move the layers yourself, sometimes its cheaper to have multiple cameras, etc.

The parallax demo isn't part of the toolkit as its just meant to be one example of implementing it. I can't find a way to integrate it in such a way that its foolproof to the end user. Eg. in that example specifically, its not possible to modify the layer names from an editor script which makes it really hard to integrate seamlessly like the rest of the toolkit.

I'd love to add one to the toolkit, but I haven't yet found a nice solution I'd be happy to add.