1103 PM - 130 AM
- Opened up Project ShootTheMoon from the computer's hard drive
- I uncommented line 14 of the code which had audio.Playback
- When I did that and played it the enemy ship continued to fall past the hero ship but did no respawn
- I put the audio source back into the enemy ship and the problem started back up again
- I'm changing some of the code in line 14 to see if that effects it
- When I played it after changing the line to say : audio.PlayOneShot(audioClips[Random.Range(0,-100)]) ; it started to go lower than it originally did but now the enemy ship won't respond to the hero ship even if they collide
- Okay now I changed the Random.Range to (-4,0) and it just falls straight down. It won't respond to hitting the hero ship and it doesn't respawn.
- Since that isn't working I'm going to reset the code and try moving the audio source to a different part of the enemy ship
- That didn't make it work exactly right either. I put the audio source into the child of enemy ship and reset the code to what the book has it written as. It will fall but it will not make a sound nor will it react when it collides with the hero ship and it doesn't respawn.
- I'm going to completely delete the enemy ship from the scene and redo that whole section
- It had next to no effect, but I was able to fix the problem with the sphere collider. I got it so that you don't have to change the x and y in the drop down box for center.
- If I could just find a way of getting the audio to go into the parent enemy ship then it should work just fine but I can't seem to figure out why it is that it's showing up out side of it
- Well I managed to reverse the slight bit of progress being that I had solve the Sphere Collider issue
- I'm going to have to call it a night I'm not getting anywhere with this tutorial. I've even looked it up and there's no mention of audio sources being outside of their intended slots so I really just don't know.
- I'll make a quick GDD and go home to play Sims
- Okay finished the GDD and saved it to Day14's folder under the name GDD, and also saved a base for the GDD format called GDDBase.
- I might have to skip on playing some more Sims. That sucks cause I was really looking forward to doing that when I got home.
- Blogged
No comments:
Post a Comment