Tuesday, 10 December 2013

Rocket Spawning


When trying to implement the falling rockets I had a bit of trouble with making them spawn in a somewhat "random" way, here is one of the errors I got:
(Keep in mind this was filmed for a Snap-chat and not for this use hence bad quality)

Here is the version I got working, I achieved this by using a random number generator to pick a "Lane" between 1-8, it would then instantiate the rocket in that lane and once the timer has run down it would go again.

(Again, Sound and Quality warning, was not intended for this use when filmed.)

No comments:

Post a Comment