0
\$\begingroup\$

I am making a game where you wander around a world collecting things. I don't need it to have terrain. I just need to repeat this area a bunch of times as the player moves around. I got a script already but it only works for terrain objects. Can this be done with C#?

a single chunk in the game is 27 meters

\$\endgroup\$
  • \$\begingroup\$ Hello, and welcome. Yes, it can be done. What are some of the things you have tried, to give us a better idea of the direction you are trying to go? You could scale it, you could tile it, etc. \$\endgroup\$ – Evorlor Oct 23 '18 at 22:21
  • \$\begingroup\$ i've tried adding empty objects with colliders on the four sides to detect a trigger from the player, once triggered they would instantiate the chunk, but it would instanciate the chunkloader(the empty object) inside another chunk \$\endgroup\$ – Indiepixel Oct 24 '18 at 1:26
  • \$\begingroup\$ @Indiepixel what does the game view look like? do you want your player to see the world generating in front of him? \$\endgroup\$ – Gabriele Vierti Oct 25 '18 at 14:08
  • \$\begingroup\$ its a first person game like in minecraft so kinda like that i geuss \$\endgroup\$ – Indiepixel Oct 25 '18 at 21:26
  • \$\begingroup\$ @Indiepixel You must post your code attempt in order to help you - clearly by your screenshot you have an error, which could potentially be the root of your problem. You may be attempting to instantiate a prefab that you have not assigned, and that may be it. But without a look at your code, I would only be able to speculate. \$\endgroup\$ – cmprogram Oct 26 '18 at 9:29

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.