```js elements.radar = { color: "#bebfa3", tick: function(pixel) { for (var y = 0; y

elements.radar = {
color: "#bebfa3",
tick: function(pixel) {
for (var y = 0; y < 50; y++) {
if (!isEmpty(pixel.x, pixel.y - y, false)) {
pixel.charge = 5;
}
doDefaults(pixel);
}
},
conduct: 1,
movable: false,
category:"ob",
darkText: true,
ignore: "radar"
}
elements.radar = {
color: "#bebfa3",
tick: function(pixel) {
for (var y = 0; y < 50; y++) {
if (!isEmpty(pixel.x, pixel.y - y, false)) {
pixel.charge = 5;
}
doDefaults(pixel);
}
},
conduct: 1,
movable: false,
category:"ob",
darkText: true,
ignore: "radar"
}
15 Replies
nousernamefound
nousernamefound•13mo ago
hmm
nousernamefound
nousernamefound•13mo ago
quick console.log test confirms the loop is set up correctly..
No description
optimistic-gold
optimistic-gold•13mo ago
i love console.log()
j
jOP•13mo ago
No description
j
jOP•13mo ago
cmon detect you idiot
passive-yellow
passive-yellow•13mo ago
are you trying to charge sand
j
jOP•13mo ago
no
passive-yellow
passive-yellow•13mo ago
oh nvm
nousernamefound
nousernamefound•13mo ago
why is isEmpty have a false? do you want to consider the border of the screen as a pixel?
j
jOP•13mo ago
tbh idk
nousernamefound
nousernamefound•13mo ago
hmm why does it have ignore radar
j
jOP•13mo ago
so it doesnt detect radar unless it doesnt work like that
nousernamefound
nousernamefound•13mo ago
ermmm i got it to work
No description
nousernamefound
nousernamefound•13mo ago
tick functions dont care about the ignore list unless u tell it to how would it know if u dont tell it to??? anyways
elements.radar = {
color: "#bebfa3",
tick: function(pixel) {
for (var y = 1; y < 50; y++) {
if (!isEmpty(pixel.x, pixel.y - y, false)) {
pixel.charge = 5;
}
doDefaults(pixel);
}
},
conduct: 1,
movable: false,
category:"ob",
darkText: true,
}
elements.radar = {
color: "#bebfa3",
tick: function(pixel) {
for (var y = 1; y < 50; y++) {
if (!isEmpty(pixel.x, pixel.y - y, false)) {
pixel.charge = 5;
}
doDefaults(pixel);
}
},
conduct: 1,
movable: false,
category:"ob",
darkText: true,
}
j
jOP•13mo ago
thx

Did you find this page helpful?