Silver Idea Badge - Maker Part 2
Watch this threadPage 1 of 1
Skip to page:
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
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();
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
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
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
#4
(Original post by Aliza515)
how do we do the lifeSupportOn() function?
how do we do the lifeSupportOn() function?
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
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
#6
(Original post by Aliza515)
how do we do the lifeSupportOn() function?
how do we do the lifeSupportOn() function?
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
#7
(Original post by ideauser123)
i dont know like i mean its bare hard
i dont know like i mean its bare hard
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
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
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
#10
(Original post by hannah46)
On line 7:lifeSupportOn(rooms[i])
On line 7:lifeSupportOn(rooms[i])
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
#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();
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();
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
#12
To call the lifeSupport function you do this:
initiate()
function lifeSupportCheck(){
}
lifeSupportCheck()
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
#13
(Original post by username4600210)
how do we do the lifeSupportOn() function?
how do we do the lifeSupportOn() function?
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
#14
(Original post by hannah46)
On line 7:lifeSupportOn(rooms[i])
On line 7:lifeSupportOn(rooms[i])
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
#15
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
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
X
Page 1 of 1
Skip to page:
Quick Reply
Back
to top
to top