![]() What i'm trying to achieve is an infinite game, I want the player to endlessry run around killing enemies and they'll re-spawn outside the player's field of view. But how i've concepted it goes like this:Īt the beginning of the layout i'm going to spawn a bunch of enemies in the room. I figured that i'd just check to see how many instances of the object are in the layout and if it goes under a certain amount of instances i'd spawn more but the problem is, if I spawn one and set the location as random. Then there's a chance it will spawn on the player or within the players field of views. So I concept that i'd make a bunch of spawners and scatter them all around the map so the game just chooses one of them as a spawn location for the enemy. ![]() But I still don't know how to remove the spawners that are in the players field of view from the choose() function. ![]() I thought up this way, but it seems a bit ineffective and the amount of object spawners on the map might cause performance issues for lower spec computers since I want to make the map quite large. If I had to compare what I'm trying to achieve to a game. Check out someone fighting in Godlands in Realm of the Mad God.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |