How do I replicate multiple height levels using z-depth?

0 favourites
  • 5 posts
From the Asset Store
A very simple to set up ZElevation based depth of field system for your game. Fully commented.
  • So what I'm trying to do is this:

    http://i64.tinypic.com/20z4qyo.png[/IMG]

    see there are two levels of height, plus you can move up or down on Z axis (closer or farther to the screen).

    Here is a better representation of what im trying to achieve in my game:

    http://i67.tinypic.com/104165h.png[/IMG]

    say for example, i walk on the WHITE line, when i reach the edge and fall down, i should land on the same line. same for the rest.

    So someone told me it should go like this:

    http://i64.tinypic.com/e0035u.jpg[/IMG]

    quote: you need to change the "feet" collider Y position based on Z-depth while the collision of ground always stays in the same position - MekaSkull from Construct Discord Server

    So, how am I actually going to achieve this?

    THANKS ALOT!

  • Honestly your game idea seems pretty advanced you would be better off without the platforming behavior and code your own movement with events otherwise you'll be stuck trying to make tons of workaround it'S limitations instead of realizing your game's full potential.

    scirra.com/arcade/fighting-games/getboned-30075

  • Honestly your game idea seems pretty advanced you would be better off without the platforming behavior and code your own movement with events otherwise you'll be stuck trying to make tons of workaround it'S limitations instead of realizing your game's full potential.

    https://www.scirra.com/arcade/fighting-games/getboned-30075

    i guess i ll learn the program more before i figure out how to do it.

    thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here's an example of the idea you got from discord.

    dropbox.com/s/flpq3bf9hv4vsul/2.5Dtest1.capx

    There's a lot of ways it can be improved, but it's better than nothing. Hopefully it's useful.

    The crux of the idea is you have a hidden object with the platform movement, and you define the ground shape on the front edge of the ground. The rest of the ground is just looks.

    Then you move up and down by adding/subtracting from a variable. I called it z, but it can be anything you think appropriate. Then you have a separate sprite to be what you see and just position it above the invisible one. I also used clamp to limit how high and low you can go.

  • Here's an example of the idea you got from discord.

    https://www.dropbox.com/s/flpq3bf9hv4vsul/2.5Dtest1.capx?dl=1

    There's a lot of ways it can be improved, but it's better than nothing. Hopefully it's useful.

    The crux of the idea is you have a hidden object with the platform movement, and you define the ground shape on the front edge of the ground. The rest of the ground is just looks.

    Then you move up and down by adding/subtracting from a variable. I called it z, but it can be anything you think appropriate. Then you have a separate sprite to be what you see and just position it above the invisible one. I also used clamp to limit how high and low you can go.

    thanks alot! will check it as soon as im home!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)