Tuesday, May 5, 2015

Week 12, Day 7: Interplanetary Shuffling


Today was spent learning how to shuffle game objects within an array upon the game starting. This was so that the objects would go back to their original and organized state when the game was not getting played. Needless to say there were several problems mainly when I was referencing the given variables because the algorithm itself was sound. Once I was done with this however I was able to apply this function to all of the arrays that needed it so essentially the "decks" of the grade one through four planets. This was also applied to the tourists for the same reasons. I also started working on a way of spawning the planets within the game but stumbled upon a few problems. One of which was weather to remove all of the planets from the hierarchy and make them all prefabs so that they could be created and destroyed more easily or weather to keep them as part of the hierarchy. I am still unsure of how to move the planets into their correct positions based on the spawn points that I have created however so that will need to be fixed the next time that I work on this. That I presume will take the entire class to get all of the spawns working for the grade one through four planets along with the tourists.

No comments:

Post a Comment