Use Multiple points from Target Point Array
Time for my second noob question... I'm trying to make treasures spawn semi-randomly. By that I mean, I want to be able to set.. lets say 20 target points on the map, and then have my treasures use 10 of those. I want to be able to set how many spawn, but I want the spawn locations to be random. How can I do this? (Ignore the Widget and Viewport thing, that's used for the score keeping in the actual level)
Thanks in advance for anyone who attempts to help with this!
Update: I added some target points in. And thanks to Klawd3 I have been able to figure out how to make it spawn multiple treasures. However, now I need a bit of help figuring out how to make it so that when a target point is used, it won't use it a second time. (At the moment, I sometimes get 2 treasures that will spawn in the same spot, and I would prefer to have them spawn in their own spots).
You want to spawn 2 objects ? You need a forloop going from 0 to 1 (two executions), and to avoid using the same spawn point twice, you can copy the array in a temporary variable, and remove the used location from the array at each execution.
Follow this question
Once you sign in you will be able to subscribe for any updates here