IDEA silver badge maker part 2

Watch this thread
modestarrow
Badges: 6
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#1
Report Thread starter 2 years ago
#1
i made this becuase im stuck on the IDEA maker part two (robot ai)
Last edited by modestarrow; 2 years ago
0
reply
modestarrow
Badges: 6
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#2
Report Thread starter 2 years ago
#2
my code is:

var soundBlocks = [crash,happyBeep,whistle];


playsound (soundblocks[i]);


please help...
0
reply
username5508872
Badges: 2
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#3
Report 1 year ago
#3
I’m stuck too
0
reply
ymca_m
Badges: 20
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#4
Report 1 year ago
#4
(Original post by modestarrow)
my code is:

var soundBlocks = [crash,happyBeep,whistle];


playsound (soundblocks[i]);


please help...
for (i=0;i<movementBlocks.length;i++ ) {
doMovement(movementBlocks[i])
}
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks[i]);
}


should work, it worked for me
1
reply
username5508872
Badges: 2
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#5
Report 1 year ago
#5
hi what did you get for the robotAT.js coding thing.ive been stuck on it for so long and I cant work it out!
0
reply
ymca_m
Badges: 20
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#6
Report 1 year ago
#6
(Original post by Daliya Obeid)
hi what did you get for the robotAT.js coding thing.ive been stuck on it for so long and I cant work it out!
whats the first bit they give you? I may be able to help but i dont remember what that part is
0
reply
username5178572
Badges: 18
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#7
Report 1 year ago
#7
(Original post by macy_m)
whats the first bit they give you? I may be able to help but i dont remember what that part is
(Original post by Daliya Obeid)
hi what did you get for the robotAT.js coding thing.ive been stuck on it for so long and I cant work it out!
If anyone needs a hand let me know, I don’t do much JS but am familiar enough with the syntax
0
reply
ymca_m
Badges: 20
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#8
Report 1 year ago
#8
(Original post by MrSandyWilly)
If anyone needs a hand let me know, I don’t do much JS but am familiar enough with the syntax
oh i did mine ages ago lmao, hence me trying to help others
0
reply
username5178572
Badges: 18
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#9
Report 1 year ago
#9
(Original post by macy_m)
oh i did mine ages ago lmao, hence me trying to help others
Oh sorry lol I accidentally quoted you
0
reply
ezzerrrr
Badges: 1
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#10
Report 1 year ago
#10
i need help with the part that goes
var soundBlocks =[crash,happyBeep,whistle];
where you have to
•Loop through soundBlocks
•call the playSound() function
•Pass the correct sound from your sound array into it
i have tried many different attempts and i need this as a homework project. It would be fantastic if you could give me the exact code i must enter
Last edited by ezzerrrr; 1 year ago
0
reply
RavernWonders
Badges: 2
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#11
Report 1 year ago
#11
(Original post by ezzerrrr)
i need help with the part that goes
var soundBlocks =[crash,happyBeep,whistle];
where you have to
•Loop through soundBlocks
•call the playSound() function
•Pass the correct sound from your sound array into it
i have tried many different attempts and i need this as a homework project. It would be fantastic if you could give me the exact code i must enter
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks[i]);
}

If I remember correctly I think I got this. I hope it helps, even though it was 3months ago or if anybody needs it.
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest

How did The Student Room help you with your university application?

Talking to current university students (19)
18.63%
Talking to peers going through the same thing (35)
34.31%
Speaking to student ambassadors from the universities (6)
5.88%
Speaking to staff members from universities (2)
1.96%
Using the personal statement builder, library or helper service (10)
9.8%
Reading articles about what steps to take (19)
18.63%
Learning about/speaking to Student Finance England (4)
3.92%
Something else (tell us in the thread) (7)
6.86%

Watched Threads

View All