3d layer to 2d

From the Asset Store
Run and Jump in 3 Dimensions! Take your platformer to the next level!
  • I want to display text/gui/hud stuff on a 2d layer that translates to the 3d objects on another. How do I get that camera projection?

  • I'm not sure if it's exactly what you need but the LayerToCanvas/CanvasToLayer system expressions work with 3D camera, i.e. projecting from a canvas position in to the 3D world.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, that's a little better, but its a bit off, like a z offset or something.

    I used:

    CanvasToLayerX("2dlayer",LayerToCanvasX("3dlayer", eship.X,eship.Y),LayerToCanvasY("3dlayer", eship.X,eship.Y)) CanvasToLayerY("2dlayer",LayerToCanvasX("f3dlayer", eship.X,eship.Y),LayerToCanvasY("3dlayer", eship.X,eship.Y))

    I was thinking it might be nice to have a setting for hierarchies that would project child objects on a 2d layer to the parent's position from a 3d layer, if they were set up that way.

    Edit, or perhaps an addition to the Pin behavior.

  • Thanks, that's a little better, but its a bit off, like a z offset or something.

    I changed the objects z to zero, and its working as expected.

    Now I'm not sure how to work around not having the z height.

    I tried setting the layers z, but that went back to how it was before.

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