Replies: 1 comment
-
No worries, happy to help. So, this is one problem where you will need to access the asset data. You don't necessarily need a loaded level though, an Firstly, you need access to the raw Once you have the raw project data there are actually many methods you can use to get the data for a particular level on the following traits: Then the let neighboring_levels = level.neighbors.iter().map(|n| LevelIid::new(n.level_iid.clone())); This guide in the book isn't exactly what you want to do, but it does go through the process of getting level data, which might be helpful: |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have custom spawing behaviors for my levels but I still want to preload neighbouring levels around the player's current level, how can I do that with
LevelSet
? I saw that there is aLoadedLevel::neighbours(&self)
function but I don't know how to retrieve aLoadedLevel
from the current state of the game, maybe it's the wrong approach?I'm very new to all this stuff, sorry for all my questions :)
Beta Was this translation helpful? Give feedback.
All reactions