Hi, i’m new to the comunity, i’m building a tension game like Slender and Survivors, which i want to be multiplayer at the end of this job, and now, i’ve learned the basics of scripting, made almost all by myself the scripts for the main menu, the pause menu, followed the great Alucard Guides to make the AI for my creature, i’ve setup my world and so on…
These week, one of my friends told me that i won’t be able to play my own game with other people because…well, i’ll know the exact location of the objetcs to get, at least, in the easy way, and i recognize that’s true…but all the work this game is taking to me…,¡i want to enjoy it too!, so i thought that i’ll need to make the objects that players need to collect during the game…spawn in random locations at the beggining of the level, and then i thought that if i want the gameObjects to spawn in any location of my world…that would be very very tricky, because they can spawn below or above the terrain, too high or to low, and trying to make the code to spawn the gameObjects based on certain rules…, i think that would be difficult, and as i said, i’m a noob to this work, so i planned a second option.
Basically i wanted to ask you for a way to make my gameObjects to spawn in random locations, but those locations, to be presets, i mean, lets say…a list of 40 or 50 different places in my scene, and then, make my gameObjects to be moved and enabled to those randomly selected places at the start of the level.
That would save me from staying away, so once i finish my game, i’ll be available to play it almost without making cheat, and this feature would make my game to be slightly diffetent every time the player enters it.
So…any ideas please? what functions and variables would i need? what steps do i have to take?
Thanks in advance, and have a nice day!![]()