Auz / Bug

Add bugs to your website
https://auz.github.io/Bug/
435 stars 80 forks source link

Kill All Bugs? #5

Closed lukebarber closed 9 years ago

lukebarber commented 9 years ago

Hello,

Is there a way to kill all bugs and prevent more from appearing?

We're looking at using this in a game and after a set time, all the bugs would disappear and could only appear if elementX is clicked again?

Luke

Auz commented 9 years ago

You can get close. I added methods to kill all, stop, and reset the bugs... eg:

var b = new BugController();
...
b.killAll();

(See the docs for other methods of stopping/resetting the bugs). Is that what you need or is it more complicated?