I want to iterate multiple statements with "loop" I am wondering what I want to do is even possible with loop.
var bomb = bombs.create(x,16,'bomb');
bomb.setBounce(1);
bomb.setCollideWorldBounds(true);
bomb.setVelocity(Phaser.Math.Between(-200,200),20);
bomb.allowGravity =false;
var bomb1 = bombs.create(x,16,'bomb');
bomb1.setBounce(1);
bomb1.setCollideWorldBounds(true);
bomb1.setVelocity(Phaser.Math.Between(-200,200),20);
bomb1.allowGravity =false;
var bomb2 = bombs.create(x,16,'bomb');
bomb2.setBounce(1);
bomb2.setCollideWorldBounds(true);
bomb2.setVelocity(Phaser.Math.Between(-200,200),20);
bomb2.allowGravity =false;
var bomb3 = bombs.create(x,16,'bomb');
bomb3.setBounce(1);
bomb3.setCollideWorldBounds(true);
bomb3.setVelocity(Phaser.Math.Between(-200,200),20);
bomb3.allowGravity =false;
The only change is the number incrementing right behind 'bomb' variable. Is it possible to use loop to iterate more than 100 times?