AMMO

Talk about making games.

AMMO

Postby harleyb12 » Sat Jan 27, 2007 3:41 am

i need to know how to make ammo for an smg. ive tried alot but i cant get it to work. no noob posts
harleyb12
 
Posts: 7
Joined: Thu Oct 19, 2006 11:12 pm
Score: 0 Give a positive score

Postby Game A Gogo » Sat Jan 27, 2007 7:49 pm

Create a text actor, enter the initial amount of bullets in, and then on the bullet actor, do this:
Code: Select all
if(Bullet_Count.textNumber>0)
{
       xvelocity=2;
       //Set the speed that you want
}
else if(Bullet_Count<=0)
{
       DestroyActoy("EventActor");
       //This may not work, use the Variable/Function button and choose destroy actor
}
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest