Hello Guest

Author Topic: Creating a parallax background with orthographic view.  (Read 6494 times)

FarzanZand

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Creating a parallax background with orthographic view.
« on: August 13, 2013, 09:53:39 am »
Hi again, I am working on creating a parallax background where different layers move in different speeds. At first, I figured I'd just use two cameras, one orthographic and one perspective but I can't get the game view to show both. It either only shows one or the other.

Checking around these forums I saw you recommend to people to check this link that shows how parallax scrolling in 2dTk can be done, but I can't access it and I get the error message "The topic or board you are looking for appears to be either missing or off limits to you."

http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,87.0.html

Can you point to the right direction so I can get the parallax background up and running? It is a 2d platformer game, and main camera is the orthographic 2dtk camera.

Best regards
Farzan

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Creating a parallax background with orthographic view.
« Reply #1 on: August 13, 2013, 10:17:21 am »
At first, I figured I'd just use two cameras, one orthographic and one perspective but I can't get the game view to show both. It either only shows one or the other.

You need to set up clear flags and depth properly on the cameras. Check sample #6 (button and 3D sprites) - that example uses 2 cameras.
Get this working first before trying the parallax cameras, as it relies on you understanding how this works.

Link to parallax demo:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,87.0.html

FarzanZand

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Creating a parallax background with orthographic view.
« Reply #2 on: August 13, 2013, 10:22:16 am »
Thanks Unikron, I'll check it out right away.

The link you placed did not work though. I get this message ""The topic or board you are looking for appears to be either missing or off limits to you.".

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Creating a parallax background with orthographic view.
« Reply #3 on: August 13, 2013, 10:23:58 am »
Its in the private support forum. You need to register following the instructions here:
http://unikronsoftware.com/2dtoolkit/forum/index.php?index.php/topic,34.0.html

FarzanZand

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Creating a parallax background with orthographic view.
« Reply #4 on: August 13, 2013, 10:30:35 am »
Cheers! :)
I sent in my request.