P
Pablo Reese
Guest
Hey guys, I'm making a game in which one one the first enemies you encounter are slimes that, every few seconds, fire shots in all 360°. What I want to do is have code like this:
The problem is instead of repeat i want something that executes 360 all in the same step. I could copy and paste the instance_create stuff 360 times but that is so impractical. Any help is greatly appreciated! Thank you!
Code:
if(slideCount = 3)
{
repeat(360)
{
bullet = instance_create(x,y,obj_blueSlimeBullet);
bullet.direction = dir;
bullet.speed = bulletSpeed;
dir += 1;
}
slideCount = 0;
}