Lumina Posted August 22, 2016 Share Posted August 22, 2016 Hello, I would like to spawn some things at the beggining of one season and removing them at the next season. Like spawning spring flowers in spring, and removing them in summer. As far as i know, i must use component for that ? What is the best way to make this ? Also, could i spawn, let say, something only if there is already less than 10 of them, or removing something partially (like keeping 5 of them ?) Thanks for help Link to comment Share on other sites More sharing options...
rezecib Posted August 22, 2016 Share Posted August 22, 2016 @Lumina I need a little more information to design this well... are these things going to spawn in a particular area? Around the player? Randomly across the world? The basic idea of tying it to seasons is to have something that watches the world state for that season, and when it gets set to true, spawns them and keeps a list of them, and then when it gets set to false, removes them. But what to attach it to depends on how you want them to spawn. Link to comment Share on other sites More sharing options...
Lumina Posted August 22, 2016 Author Share Posted August 22, 2016 @rezecib Thanks for your reply. I want them to spawn in a particular area (here, specifics grounds). Probably some for surface and some for cave, but i suppose i could manage this part with the "forest" and "cave" tags ? Link to comment Share on other sites More sharing options...
rezecib Posted August 22, 2016 Share Posted August 22, 2016 @Lumina By "specific area" I mean like within a few screens of something. If you mean on particular turfs across the world, then that's a very different deal. Link to comment Share on other sites More sharing options...
Lumina Posted August 22, 2016 Author Share Posted August 22, 2016 @rezecib Oh, sorry. What does it implies ? Link to comment Share on other sites More sharing options...
Lumina Posted August 22, 2016 Author Share Posted August 22, 2016 I mean, does it make it more difficult ? Make the game lag ? Something else ? Link to comment Share on other sites More sharing options...
Lumina Posted August 25, 2016 Author Share Posted August 25, 2016 @rezecib If i want to spawn them in particular turfs around the world, is it still possible ? Also, could i put the "removing" part in the prefab ? Like, seeing if it's summer, and if yes, remove it ? The same way that rabbit hole crumbles in spring, but removing instead ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now