Foreground Elements #63
-
Would it be possible to have foreground elements (e.g. the structures in Star Light Zone) using the background functions? If not, would it be better to just make it from scratch? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You mean those pillars that scroll past the foreground? Technically background functions would work, but the framework draws the background elements at maximum depth (ENGINE_RENDERER_DRAW_PRIORITY, which is 16000) You could try to change the depth mid-draw and then revert it back to the initial value, but I never really tried it so can't say for sure. It is better to make them from scratch, I guess I can even share the code from my S1R project:
Obviously ctrl+C ctrl+V won't work here due to it using different variables (the code is from iteration of OF1), but the idea is here |
Beta Was this translation helpful? Give feedback.
You mean those pillars that scroll past the foreground? Technically background functions would work, but the framework draws the background elements at maximum depth (ENGINE_RENDERER_DRAW_PRIORITY, which is 16000)
You could try to change the depth mid-draw and then revert it back to the initial value, but I never really tried it so can't say for sure. It is better to make them from scratch, I guess I can even share the code from my S1R project: