Well, Ben There, Dan That! had some pretty crazy epileptic like walk cycles, and I thought they were funny.

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuwhile(x<=199){//the array has I'm checking has 200 places. it was a random number without thought tbh.
if (Mouse.IsButtonDown(eMouseLeft)==1)
{
if (BulletCount<200) //checks to see if you aren't at max
{
PlaySound(1); //pewpew sound
bullet[BulletCount].x = mouse.x+8+Random(18); //to get the gatling effect I put in a bit of random X position
bullet[BulletCount].y = 185; //his Y start position
bullet[BulletCount].a = Random(2)-1; //random angle at which the bullet will fly
BulletCount++; //you add the number After you assign it to the Array. That way 1 will be 0 on the array.
}
}
int i;
while [i<BulletCount]
{
if (bullet[i].y<0) //remove the bullet OR if this bullet has touched an enemy ship.
{
bullet[i].x=bullet[BulletCount].x; //this replaces the current bullet with the Last bullet in the array.
bullet[i].y=bullet[BulletCount].y;
bullet[i].a=bullet[BulletCount].a;
BulletCount--;
i--; //so this number gets ran again
}
i++;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.051 seconds with 15 queries.