Skip to corpus content
HIMR Public Corpustimestamped source index

Recording

How to make a button play a sound in XCODE 7!

2015-11-09 · 10 min

internet_archive
Machine transcript · wording, timing and speaker attribution may be wrong

Wording, speaker labels, and timestamps can still be wrong. A transcript does not establish that statements in the recording are factual. Use the source links and surrounding context.

Read summary

Expand to load the summary.

Open summary page ↗
Source information & transcript revisions

Transcript revisions

  1. rev_70e4621a43d3d7e9e0b4a024eb3fbb9cMachine-generated and unreviewed; may be wrong; not a verified quotation.
    enraw_asractive179 segments

Transcript

en
  1. Hello, and in this video we're going to

    Segment details0:00–0:02 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_0
  2. learn how to make buttons play a sound

    Segment details0:02–0:05 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_1
  3. when pressed on in Xcode 7. Okay, so first

    Segment details0:05–0:09 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_2
  4. open a new project and click on— I can't

    Segment details0:09–0:12 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_3
  5. remember, what was it? New Product

    Segment details0:12–0:16 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_4
  6. Project. I did one Single

    Segment details0:16–0:19 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_5
  7. View Application. Okay, so after you've

    Segment details0:20–0:21 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_6
  8. done that, go to General and go down to

    Segment details0:22–0:24 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_7
  9. Linked Frameworks and Libraries and And

    Segment details0:25–0:27 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_8
  10. press plus and look for Audio Toolbox.

    Segment details0:27–0:29 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_9
  11. And you'll see it there. I've already

    Segment details0:31–0:32 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_10
  12. added it, so just add that so it appears

    Segment details0:32–0:34 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_11
  13. down here. And then go to Main Storyboard

    Segment details0:34–0:38 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_12
  14. and create your buttons. I've already

    Segment details0:38–0:39 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_13
  15. created them. Just look for buttons down

    Segment details0:40–0:42 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_14
  16. at the bottom right and drag them onto the

    Segment details0:42–0:43 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_15
  17. screen. And you can resize,

    Segment details0:44–0:46 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_16
  18. auto-resizing. Make sure these are in the

    Segment details0:46–0:48 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_17
  19. middle so it appears in the middle of the

    Segment details0:48–0:50 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_18
  20. screen. Okay, next you need to go to

    Segment details0:51–0:53 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_19
  21. ViewController.h. And we need to import

    Segment details0:53–0:57 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_20
  22. the audio library. So just copy that bit,

    Segment details0:57–1:00 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_21
  23. and instead of this UIKit, put

    Segment details1:01–1:04 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_22
  24. AudioToolbox. And then under interface,

    Segment details1:04–1:08 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_23
  25. open curly brackets and close. And then we

    Segment details1:08–1:11 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_24
  26. need to declare the buttons that we are

    Segment details1:11–1:14 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_25
  27. going to press. So call it— we need system

    Segment details1:14–1:17 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_26
  28. sound ID, and we'll call it button1. And

    Segment details1:17–1:21 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_27
  29. then system sound ID and button 2. Okay,

    Segment details1:21–1:24 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_28
  30. now we need IB actions. So IB actions are

    Segment details1:24–1:27 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_29
  31. code for when we press the button, it will

    Segment details1:27–1:31 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_30
  32. run this code. So we need a middle line,

    Segment details1:31–1:34 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_31
  33. don't know what it's called, brackets, IB

    Segment details1:34–1:36 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_32
  34. action, and we'll call it button 1

    Segment details1:36–1:39 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_33
  35. sound. And then

    Segment details1:39–1:43 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_34
  36. just copy paste paste it. Change it to

    Segment details1:44–1:47 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_35
  37. button2Sound. Okay, and now

    Segment details1:47–1:51 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_36
  38. go into ViewController.m,

    Segment details1:51–1:53 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_37
  39. and in the— under viewDidLoad.

    Segment details1:54–1:59 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_38
  40. Okay, so there's going to be some long

    Segment details1:59–2:00 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_39
  41. code here. Now I can't actually remember

    Segment details2:00–2:03 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_40
  42. it. I remember some of it. Let's see if I

    Segment details2:03–2:06 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_41
  43. can remember it. Okay, so I think it was

    Segment details2:06–2:09 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_42
  44. NSURL And then asterisk.

    Segment details2:09–2:14 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_43
  45. Now we want to call our sound something,

    Segment details2:15–2:17 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_44
  46. so let's just call it button1Sound.

    Segment details2:17–2:18 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_45
  47. And then— nope, I can't remember it. Hold

    Segment details2:21–2:25 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_46
  48. on, let me just get it. So here's the code

    Segment details2:25–2:28 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_47
  49. you need. I almost got it. It was ns—

    Segment details2:29–2:31 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_48
  50. nsuil, and then change this to our new

    Segment details2:32–2:36 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_49
  51. one, button1. Sound,

    Segment details2:36–2:39 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_50
  52. and this is just something that we choose

    Segment details2:39–2:41 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_51
  53. to name it. It can be whatever you want.

    Segment details2:41–2:43 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_52
  54. NSURL file URL with path, NSBundle main

    Segment details2:44–2:48 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_53
  55. bundle, and this first red one is what

    Segment details2:48–2:51 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_54
  56. your sound's going to be called. Okay,

    Segment details2:51–2:52 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_55
  57. first let's bring our sounds in. Hold on,

    Segment details2:52–2:55 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_56
  58. that was my other project. Oh.

    Segment details2:57–2:59 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_57
  59. Okay, so get your sounds. We'll have

    Segment details3:07–3:08 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_58
  60. blood1 and blood2, and drag it down to

    Segment details3:08–3:11 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_59
  61. supporting files. Now what I found is if

    Segment details3:11–3:13 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_60
  62. you don't tick this, all of these, it

    Segment details3:14–3:16 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_61
  63. makes the project crash. So tick all of

    Segment details3:16–3:19 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_62
  64. those like I have and it should be fine.

    Segment details3:20–3:21 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_63
  65. I don't know why it does that.

    Segment details3:22–3:23 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_64
  66. Okay, so we have our first one called

    Segment details3:25–3:27 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_65
  67. blood1, so just type blood1 like it is

    Segment details3:27–3:29 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_66
  68. there, and it's an M4A file, so of type

    Segment details3:30–3:33 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_67
  69. will be M4A. If it's MP3 or WAV,

    Segment details3:33–3:36 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_68
  70. just change it like that. And then audio

    Segment details3:37–3:41 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_69
  71. services create system sound ID, and these

    Segment details3:41–3:45 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_70
  72. are 2 lines, underscore bridge shoot

    Segment details3:45–3:49 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_71
  73. sound. So this, this text should be the

    Segment details3:49–3:51 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_72
  74. same as this one, so button 1 sound. It

    Segment details3:51–3:54 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_73
  75. should be the nsurl And this one should be

    Segment details3:55–3:58 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_74
  76. the same as the one we did in

    Segment details3:58–3:59 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_75
  77. ViewController.h. So we called it button1,

    Segment details3:59–4:02 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_76
  78. so this should be called

    Segment details4:04–4:05 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_77
  79. button1SystemSoundID.

    Segment details4:05–4:05 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_78
  80. Now we need to do the IBAction for the

    Segment details4:09–4:10 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_79
  81. button. And what

    Segment details4:11–4:14 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_80
  82. was it called? I can't remember. We called

    Segment details4:14–4:18 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_81
  83. it button1Sound.

    Segment details4:18–4:19 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_82
  84. It should come up automatically.

    Segment details4:23–4:24 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_83
  85. And get rid of the double sender and

    Segment details4:26–4:31 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_84
  86. do open curly brackets and close, and then

    Segment details4:31–4:35 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_85
  87. do— what was it?

    Segment details4:35–4:37 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_86
  88. I can't remember this one either. Hold on,

    Segment details4:39–4:42 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_87
  89. it was in my other project. It was Oh,

    Segment details4:43–4:52 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_88
  90. where did I put it?

    Segment details4:52–4:52 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_89
  91. Here it is. Audio services play system

    Segment details4:57–4:59 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_90
  92. sound. So put that into the IB action for

    Segment details5:00–5:03 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_91
  93. your button. Audio services— I can't—

    Segment details5:03–5:08 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_92
  94. I still can't remember it. Why do they

    Segment details5:08–5:10 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_93
  95. make this so long? Audio services play

    Segment details5:10–5:12 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_94
  96. system sound. And then type here open

    Segment details5:12–5:15 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_95
  97. brackets and then button1.

    Segment details5:15–5:17 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_96
  98. This bit's also the same as this, as the

    Segment details5:21–5:23 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_97
  99. one in .h that we just made. Okay, so now

    Segment details5:23–5:26 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_98
  100. it should actually work. Let's test it

    Segment details5:26–5:29 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_99
  101. out. Okay, first we have to link the

    Segment details5:30–5:31 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_100
  102. buttons so it knows which one to use.

    Segment details5:32–5:34 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_101
  103. Go into the 6th tab along after pressing

    Segment details5:38–5:40 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_102
  104. on the top of the ViewController, and here

    Segment details5:40–5:42 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_103
  105. it is, Received Actions, button1Sound.

    Segment details5:43–5:43 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_104
  106. Click on the top button, touch up inside,

    Segment details5:45–5:48 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_105
  107. and then let's do run.

    Segment details5:48–5:49 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_106
  108. See if it works.

    Segment details5:52–5:53 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_107
  109. Where is it? It's taking its time.

    Segment details5:59–6:03 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_108
  110. Okay, okay, we have our buttons. Now let's

    Segment details6:08–6:11 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_109
  111. see if it works. Yep, did you hear

    Segment details6:11–6:14 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_110
  112. that? That lovely blood splatter.

    Segment details6:15–6:17 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_111
  113. Okay, now let's go on to programming

    Segment details6:20–6:21 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_112
  114. button 2. So basically it's the same, so

    Segment details6:22–6:25 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_113
  115. just copy IBAction, and this is for our

    Segment details6:26–6:29 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_114
  116. second button. So we change button 1 sound

    Segment details6:29–6:31 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_115
  117. to button 2 sound, and we change this

    Segment details6:32–6:34 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_116
  118. sound to button 2, and we also have to

    Segment details6:34–6:37 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_117
  119. copy and paste this bit. Now we always

    Segment details6:37–6:39 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_118
  120. need this bit inside viewDidLoad so that

    Segment details6:39–6:43 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_119
  121. when it loads the application, it's

    Segment details6:43–6:45 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_120
  122. loading all the sound. If you put this bit

    Segment details6:45–6:47 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_121
  123. inside the IBAction, the first time you

    Segment details6:47–6:49 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_122
  124. press the button, it won't actually play

    Segment details6:49–6:51 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_123
  125. the sound, but the second time it will.

    Segment details6:52–6:53 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_124
  126. So you need to put it here. This is what I

    Segment details6:53–6:55 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_125
  127. found after some— after hours and hours of

    Segment details6:56–6:59 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_126
  128. trial and error and lots of stressing out.

    Segment details6:59–7:01 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_127
  129. So I'm making this video to make it easier

    Segment details7:02–7:04 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_128
  130. for you guys. So just copy and paste it.

    Segment details7:04–7:06 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_129
  131. Now what we have to change is this one to

    Segment details7:07–7:10 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_130
  132. Button 2 Sound and change

    Segment details7:10–7:14 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_131
  133. all of it to Blood 2, Button 2 Sound,

    Segment details7:14–7:18 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_132
  134. and Button 2. And don't forget— I

    Segment details7:18–7:22 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_133
  135. think that's all.

    Segment details7:22–7:22 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_134
  136. Now we have to link it up. We could change

    Segment details7:25–7:28 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_135
  137. this one, Button 1 Make it more easy

    Segment details7:28–7:33 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_136
  138. to understand. Button 2. And drag this

    Segment details7:33–7:36 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_137
  139. down to your second button. Touch up

    Segment details7:36–7:39 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_138
  140. inside and run.

    Segment details7:39–7:42 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_139
  141. See if it actually works.

    Segment details7:44–7:45 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_140
  142. So blood 1 and blood 2.

    Segment details7:47–7:50 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_141
  143. Nice. See, it wasn't so hard. It took me

    Segment details7:52–7:55 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_142
  144. like all day today. To figure out how to

    Segment details7:56–7:58 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_143
  145. do this because the tutorial I used, it

    Segment details7:59–8:01 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_144
  146. didn't explain how to make multiple

    Segment details8:02–8:03 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_145
  147. buttons and multiple sounds. He only told

    Segment details8:03–8:05 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_146
  148. me how to do one button, so I had to

    Segment details8:05–8:07 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_147
  149. figure out how to do a second sound and

    Segment details8:07–8:09 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_148
  150. second buttons.

    Segment details8:09–8:10 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_149
  151. So there it is.

    Segment details8:12–8:13 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_150
  152. Obviously you can add more buttons and you

    Segment details8:16–8:19 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_151
  153. can also, you can As

    Segment details8:19–8:23 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_152
  154. long as this bit's in the viewDidLoad and

    Segment details8:24–8:26 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_153
  155. you put this code into whatever you want

    Segment details8:26–8:28 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_154
  156. to make the sound, for example, you could

    Segment details8:29–8:30 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_155
  157. have a collision like if CGRect intersects

    Segment details8:30–8:34 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_156
  158. CGRect, some something something frame,

    Segment details8:34–8:37 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_157
  159. something something frame, and then you do

    Segment details8:37–8:39 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_158
  160. this one underneath it. So when those

    Segment details8:39–8:41 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_159
  161. things collide, that this sound will play.

    Segment details8:41–8:44 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_160
  162. So for example, you could have a bullet

    Segment details8:44–8:46 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_161
  163. and a monster, and when they collide this

    Segment details8:46–8:48 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_162
  164. button also plays. But that will take some

    Segment details8:49–8:51 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_163
  165. time to set up. I might do it in the next

    Segment details8:51–8:53 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_164
  166. video. If you want to see that, just leave

    Segment details8:53–8:57 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_165
  167. a like or a comment and I'll start making

    Segment details8:57–8:59 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_166
  168. that video. But I hope this video was

    Segment details9:00–9:02 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_167
  169. helpful. If, if there was this video

    Segment details9:02–9:06 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_168
  170. available to me, would have made my life a

    Segment details9:06–9:08 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_169
  171. lot easier. But anyway, that's how you use

    Segment details9:08–9:11 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_170
  172. Audio Toolbox. To make sounds.

    Segment details9:11–9:15 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_171
  173. I'm not sure how to make, like, a sound

    Segment details9:15–9:18 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_172
  174. keep looping after it's played because I

    Segment details9:19–9:21 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_173
  175. want, like, a background sound for music

    Segment details9:21–9:23 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_174
  176. in my game, but I'm not sure how to loop

    Segment details9:23–9:25 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_175
  177. the sound yet. So after I found out

    Segment details9:26–9:29 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_176
  178. how to do that, I might make a new video.

    Segment details9:29–9:32 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_177
  179. Anyway, thanks for watching, and I'll see

    Segment details9:33–9:35 · rev_70e4621a43d3d7e9e0b4a024eb3fbb9c_178