Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update Zdepth while in game

See original GitHub issue

I have a piece of code which updates the Z-index of the entity like so: entity.getTransformComponent().setZ(5);. I have tested it and I’m sure that the block of code is being executed, however: the update to the Z-index is never propagated to the screen and the entity remains above (or below) the other entities.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

AlmasBcommented, Feb 13, 2020

It seems you are running an old version of the snapshot:

15:50:43.799 [JavaFX Application Thread] INFO  Engine               - FXGL-dev-SNAPSHOT (11.02.2020 21.08) on MAC (J:11.0.1 FX:12.0.1)

Try force update maven dependencies. The build should be dated today 13.02.2020

JosephChotardcommented, Feb 13, 2020

Thank you very much!!! It worked, sorry didn’t realise cleaning the project wasn’t enough.

For future reference, here’s the command to force update maven projects: mvn clean install -U

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drawing in the 3D world of a modern game WITH z-depth testing
This can make it hard to actually draw geometry in the game world, instead of merely on top of the game world. Here's...
Read more >
How to implement Z depth in a 2D game? : r/godot - Reddit
I'm curious on how to make something like the Mario Bros. Superstar Saga game, it's definitely a 2D game since it was on...
Read more >
Using z(depth) to create a "3D" scene - Microsoft MakeCode
I just wanted to share what I've learned about using a sprite's z(depth) property in makecode arcade for allowing characters to move in ......
Read more >
Z-Depth · Documentation
Z-Depth. This page shows some example tree layouts that can be used to generate depth data or use z-depth for tracking. Note ...
Read more >
Depth testing - LearnOpenGL
When depth testing is enabled, OpenGL tests the depth value of a fragment against ... is rendered and the depth buffer is updated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found