Silver Idea Badge - Maker Part 2

Watch this thread
safaxx
Badges: 7
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 3 years ago
#1
Basically, Iḿ stuck on the second part, the code is like this
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
rooms[i];
}
}

lifeSupportCheck();
1
reply
Zain_97
Badges: 4
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 3 years ago
#2
hi on line 7 put rooms[i] hope this helps
3
reply
username4600210
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.
#3
Report 3 years ago
#3
how do we do the lifeSupportOn() function?
0
reply
Robot173619
Badges: 0
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 2 years ago
#4
(Original post by Aliza515)
how do we do the lifeSupportOn() function?
Have you found out the answer
0
reply
username5135136
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.
#5
Report 2 years ago
#5
need help on this aswell
0
reply
username5135136
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.
#6
Report 2 years ago
#6
(Original post by Aliza515)
how do we do the lifeSupportOn() function?
i dont know like i mean its bare hard
0
reply
popstar23241
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.
#7
Report 2 years ago
#7
(Original post by ideauser123)
i dont know like i mean its bare hard
did you find out?
0
reply
hannah46
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.
#8
Report 2 years ago
#8
On line 7:lifeSupportOn(rooms[i])
2
reply
hi356
Badges: 4
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
ill tri that now
Last edited by hi356; 1 year ago
0
reply
ABH_67
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
(Original post by hannah46)
On line 7:lifeSupportOn(rooms[i])
it does not work for me
0
reply
troydeeneyyt
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 safaxx)
Basically, Iḿ stuck on the second part, the code is like this
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
rooms[i];
}
}

lifeSupportCheck();
I'm stuck
0
reply
Martyna75
Badges: 5
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#12
Report 1 year ago
#12
To call the lifeSupport function you do this:

initiate()
function lifeSupportCheck(){

}
lifeSupportCheck()
Last edited by Martyna75; 1 year ago
3
reply
Martyna75
Badges: 5
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#13
Report 1 year ago
#13
(Original post by username4600210)
how do we do the lifeSupportOn() function?
initiate();
function lifeSupportCheck() {
}
1
reply
Abijoa
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.
#14
Report 1 year ago
#14
(Original post by hannah46)
On line 7:lifeSupportOn(rooms[i])
thanks so much omg!!!!
0
reply
Martyna75
Badges: 5
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#15
Report 11 months ago
#15
Name:  iDEA - The Digital Adventurer Part Two and 1 more page - Personal - Microsoft​ Edge 09_07_.png
Views: 258
Size:  19.6 KB
Does anyone know how to do this?
You have to write a loop and inside the loop you must call the playSound() function and pass the soundBlock object into it

Edit: I got the answer here it is for anyone else who needs it:

var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks[i]);
}
Last edited by Martyna75; 11 months ago
0
reply
lucy_r542
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.
#16
Report 2 months ago
#16
same i need help
0
reply
yamannie
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.
#17
Report 2 weeks ago
#17
(Original post by Martyna75)
initiate();
function lifeSupportCheck() {
}
(Original post by Abijoa)
thanks so much omg!!!!
it doesn't work for me
0
reply
X

Quick Reply

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

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Year 12s - where are you at with making decisions about university?

I’ve chosen my course and my university (26)
28.26%
I’ve chosen my course and shortlisted some universities (31)
33.7%
I’ve chosen my course, but not any universities (8)
8.7%
I’ve chosen my university, but not my course (3)
3.26%
I’ve shortlisted some universities, but not my course (5)
5.43%
I’m starting to consider my university options (13)
14.13%
I haven’t started thinking about university yet (4)
4.35%
I’m not planning on going to university (2)
2.17%

Watched Threads

View All