const enemies = [];
var A = 5;
enemies.push({
r: Math.random() * 200+A ,
deg: Math.random() * 360,
opacity: 0
});
enemies.push({
r: Math.random() * 200 ,
deg: Math.random() * 360,
opacity: 0
});
setTimeout(function() {
A = A+50
}, 5000);
Excuse me guys. I am new for JS. Can someone tell me why my setTimeout() didn't work. I think I lost a function to feedback for array. What should I do?