Solved Level related questions

Question that is answered or resolved.

Smart Kitty

Well-known member
Heya, I have been wandering on the wiki but couldn't find any info about it so there is my first question. BG and BG layers can be changed dynamically in the level? like I want to change some bg layers and the main bg to change its texture, it is an undocumented feature or the bg texture is something hardcoded in the engine?
 
Yes but I was wondering if i could change at least the BG in game, found the openborvariant called background and tried to change it and I get shutdown with no info in the log
 
@Smart Kitty

First, don't use bglayer at all. That's been outdated for years. Use fglayer. Same thing, but allows specific Z layer positioning. Bglayer Z positioning is hard coded.

Also, yes, you can adjust level properties at runtime. I even wrote a tutorial on using runtime level properties to make animation.


DC
 
Solution
Hmm I see. I think I can do something since fglayers can be disabled enabled

Changing an existing texture during live gameplay is not really a thing, in any engine. You have to reload to do that. Any texture you need to swap live must either be in memory already or loaded asynchronously before it's called.

So yes, if you want to live swap layers, you'll need all the possible layers ready from the outset, then enable/disable to suit your design. That's what those flags are for.

DC
 
Back
Top Bottom