Download presentation
Presentation is loading. Please wait.
1
lecture 9 Our First Project 20.11.2017
These slides are designed for Game Design Class Science and Culture University By Alireza Seddighi.
2
CloudSpawner scrip In the CloudSpawner script define the following variables
3
In the CloudSpawner script do the followings:
Remove The Update Function Create a function called “SetMinAndMax()” Call the function in the Awake() function
4
In the CloudSpawner script do the followings:
Create a function for shuffle the clouds called “Shuffle()” Now Create a function called “CreateClouds()” for randomizing the position of Clouds Call the “CreateClouds()” function in the Awake() function
5
Create Cloud Object From Cloud Prefab
In the Project tab go to Assets > Prefabs > CloudPrefab Drag and drop each of the Prefabs to the Scene Do the step 2 one more time
6
Select The CloudSpawner Script and do the followings:
By Selecting The CloudSpawner Script Go the Inspector tab and set size to 8 By Selecting The CloudSpawner Script drag each game objects to one of the Empty Elements
7
Run the game What is the Problem ??? How to solve this issue ???
All The Clouds Positioned In The Same Y Position How to solve this issue ??? We should subtract the distance between the cloud from the position Y
8
We should subtract the distance between the cloud from the position Y
9
zigzag formation of clouds
Using controlX Variable We Can Control The Formation Of Cloud
10
Assignment for next week
Think Of Alternatives For Randomizing Objects Make Your Own Game Play With The Current Knowledge Create Your Own Assets(using any program that you are already familiar with Read One Of The Articles In The Magazines And Explain That Article To Others In The Next Class
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.