Author Topic: Parralax?  (Read 4857 times)

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Parralax?
« on: October 08, 2013, 03:44:42 PM »
What is Parallax and how does it work in Hammerwatch? Are there any examples that I can see to get an idea?

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Parralax?
« Reply #1 on: October 08, 2013, 04:48:41 PM »
Its used to create an overlay on top of the screen such as fog, and lets you set the speed and direction that it scrolls in.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Parralax?
« Reply #2 on: October 08, 2013, 06:07:36 PM »
Are there any examples of this in the game or any campaigns?

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Parralax?
« Reply #3 on: October 09, 2013, 12:08:41 AM »
A few custom campaigns rarely use it but if you want to test it in the editor use the testparralax.xml and play about with it, you could flash the entire screen up with any set effect sprite if you wanted.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Parralax?
« Reply #4 on: October 09, 2013, 02:40:39 AM »
Oh this is the fog from the survival map. So I'd like to use this parallax feature, but there are certain areas I need the parallax to *not* be. I see in the survival map they have the fog below the cliffs, and in those areas the fog does not reach - but I think they cheated around it by putting the parallax layer below the cliff doodads.

It seems that no matter what the parallax will show over the tiles if not the doodads - is there any way to exclude the parallax in certain areas?

Hipshot

  • Developer
  • Posts: 453
  • Level Designer
    • View Profile
Re: Parralax?
« Reply #5 on: October 10, 2013, 08:26:56 AM »
The only way to exclude parallax in an area right now is to make a new level, more or less.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Parralax?
« Reply #6 on: October 11, 2013, 03:11:35 AM »
Okay so the whole level will have the parallax no matter what? Thanks for th answer btw, are there any plans to maybe make some sort of exclusion area?

Hipshot

  • Developer
  • Posts: 453
  • Level Designer
    • View Profile
Re: Parralax?
« Reply #7 on: October 13, 2013, 08:21:58 AM »
I think you should assume it will stay this way until we can find another way.
Maybe you can just add a crop feature to the parallax settings, I can ask Myran.

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Parralax?
« Reply #8 on: October 14, 2013, 09:51:53 AM »
Well, you can turn them on and off with scripts, so you could just fade it out when a player enters some area.

Hipshot

  • Developer
  • Posts: 453
  • Level Designer
    • View Profile
Re: Parralax?
« Reply #9 on: October 14, 2013, 04:43:28 PM »
...but that will mess up MP games when people are far away =)

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Parralax?
« Reply #10 on: October 14, 2013, 05:17:11 PM »
I just forced a level change for the world map on my custom campaign when moving to the desert so you have to pass though a small desert outpost first, then everyone in the desert at once.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Parralax?
« Reply #11 on: October 14, 2013, 07:00:05 PM »
This prevents things like a town with fog, or at least forces people to move in and out of every single building together, etc.

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Parralax?
« Reply #12 on: October 14, 2013, 09:59:39 PM »
best solution would be animated doodad for what you want, not ideal though and pieces would have to fit perfectly.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Parralax?
« Reply #13 on: October 15, 2013, 03:20:22 AM »
That's essentially how I might have to do it at times - this is an immense amount of doodads to stream across a place though, we'll see!