Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite Depth of machines can sometimes have items drop behind them. #8073

Closed
1 task done
Tsunder opened this issue Jan 21, 2022 · 4 comments
Closed
1 task done

Sprite Depth of machines can sometimes have items drop behind them. #8073

Tsunder opened this issue Jan 21, 2022 · 4 comments
Assignees
Labels
Bug Something isn't working Code Programming task

Comments

@Tsunder
Copy link
Contributor

Tsunder commented Jan 21, 2022

  • I have searched the issue tracker to check if the issue has already been reported.

Description
Since many machines like deconstructors have the same sprite as most items (0.8), sometimes/on some subs? dropping items from the machines/placing items "on" the machine will have the item appear in the background of the machine / the machine will win the Z-fight.

Preferably, machines would be further back, like 0.81, so that this can't occur.

Steps To Reproduce
If possible, describe how the developers can reproduce the issue. It is often extremely hard to fix a bug if we don't know how to make it happen.

Version
Which version of the game did the bug happen in. Also, please include the operating system you're using (Windows/Linux/Mac).

Additional information
Add any other context about the problem here.

@Regalis11 Regalis11 added Bug Something isn't working Code Programming task labels Jan 31, 2022
@Regalis11
Copy link
Collaborator

Since many machines like deconstructors have the same sprite as most items (0.8)

It appears most items have their depth set to 0.5; the only ones set to 0.8 I could find were the electrical components. Could you give some examples of the items you've noticed this issue on?

@Tsunder
Copy link
Contributor Author

Tsunder commented Jan 31, 2022

Ah, then I was biased somewhat since the most commonly placed item I place in sub walls are signal components, sorry!

for the purpose of this bug report;
wiring/signal Components sprite depths,
Explosives sprite depth is 0.8 (they can't be attached to walls except in a detonator, but don't they then take on the detonator's depth?)

(also pet ID / ID cards apparently are 0.8)

can items have a different depth when dropped loosely vs attached to walls ?

@Regalis11
Copy link
Collaborator

Thanks for the clarification! Atm it's not possible to make the items change their depth when attached to a wall, but I think we'll need to add that option to fix this; it'd look weird if signal components attached to walls were drawn in front of the devices.

@Regalis11 Regalis11 self-assigned this Feb 4, 2022
@Regalis11 Regalis11 added the Waiting Cannot be worked on/reviewed/tested at the moment for some reason label Feb 4, 2022
@Rokvach Rokvach removed the Waiting Cannot be worked on/reviewed/tested at the moment for some reason label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Code Programming task
Projects
None yet
Development

No branches or pull requests

3 participants