The spitfire all in all turned out rather well, although the texturing could use a fair bit of work but i did make a small clip of it taking off and retracting its landing gear. However after getting it to a point i was happy with it and thinking about the game i was making and that i was still struggling with camera issues and visual effects such as the flash when firing a though crossed my mind why not instead of trying and struggling to make this isometric zombie horde type game that i could instead make a top down shmup or shoot em up like Asteroids or space invaders but without the cover/destructible bunkers and more movement.
Now to create a game controller start by making a new game object and name it Game Controller and set it to origin position and change the tag to Game Controller and add component, new script and name it game controller, now edit the game controller script. Public class GameController : MonoBehaviour { Public GameObject hazard; Public Vector3 spawnValues; Public inthazardCount; Public float spawnWait; Public float startWait; Void start () { StartCoroutine (SpawnWaves ()); } IEnumerator SpawnWaves () { Yield return new WaitForSeconds (startWait); while (true) { For (int I = 0; i < hazardCount; i++) { Vector3 spawnPosition = new vector3 (Random.Range (-spawnValues.x, spawnValues.x), spawnValues.y, spawnValues.z); Quaternion spawnRotation = Quaternion.identity; Instantiate (hazard, spawnPosition. spawnRotation); Yield return new WaitForSeconds (spawnWait); } Yield return new WaitForSeconds (waveWait); } } } Select the Game Contr...
Comments
Post a Comment