« first day (2324 days earlier)      last day (1793 days later) » 

 
3 hours later…
5:29 AM
21 messages moved from GMTs
 
 
3 hours later…
8:02 AM
java.lang.IllegalStateException: Too many receivers total of 1000, registered for pid: 11201
can anyone help how to fix problem
 
1 message moved from Android
 
 
3 hours later…
2:22 PM
Is there something wrong with my function here? I Tested it with Dat.gui on my tearable cloth thing, but its not working, the gui wont even appear. `var text;

var sampleText = function() {
this.border = false;
};

window.onload = function() {
text = new sampleText();
setValue();
var gui = new dat.GUI();
gui.add(text, 'border').onChange(setValue);
};

function setValue() {
if(text.border) {
intervalID = window.setInterval(colorChange, 100);
}
else {
clearInterval(intervalID);
}
}`
 
1 message moved from JavaScript
 
Anyways again. IS there a problem with this code: I Correctly linked it to the functions in my tearable cloth canvas. var text;

var sampleText = function() {
this.border = false;
};

window.onload = function() {
text = new sampleText();
setValue();
var gui = new dat.GUI();
gui.add(text, 'border').onChange(setValue);
};

function setValue() {
if(text.border) {
intervalID = window.setInterval(colorChange, 100);
}
else {
clearInterval(intervalID);
}
}```
 
1 message moved from JavaScript
 
 
1 hour later…
3:29 PM
https://codepen.io/SkylerSpark/pen/ELwmoa
var text;

var sampleText = function() {
this.Rainbow = false;
this.Reset = function() {};
};

window.onload = function() {
text = new sampleText();
setValue();
var gui = new dat.GUI();
gui.add(text, 'Rainbow').onChange(setValue);
gui.add(text, 'Reset');
};

var intervalID;
function setValue() {
if(text.Rainbow) {
intervalID = window.setInterval(colorChange, 100);
}
else {
clearInterval(intervalID);
}
}

What is wrong now? I managed to make 2 things, a Checkbox (Turns Rave Off and On) and a Function click which is supposed to Reset my cloth (Run fun
 
1 message moved from JavaScript
 
3:42 PM
In my js:
`function Reset() {
cloth = new Cloth(noTop)
}`
 
1 message moved from JavaScript
 
 
5 hours later…

« first day (2324 days earlier)      last day (1793 days later) »