View Full Version : Make guys pop up randomly
bennydickson
December 1st, 2004, 05:39 PM
Hey, Im making a FPS game and i couldn't make my script work to make the guys pop up at random times.
I also need help with making a time when u cant shoot, ive tried tons of stuff but it aint work.
Thanks,
benn****son
Dr Warm
December 1st, 2004, 08:04 PM
welcome to the forums! some one asked this a week or two ago, you can view the thread here (http://www.kirupaforum.com/forums/showthread.php?t=76587) (download the attachment in post 18).
I'm not sure what you mean by:
I also need help with making a time when u cant shoot, ive tried tons of stuff but it aint work.
can u tell me more?
dreeft
December 1st, 2004, 10:46 PM
hahaha, i thought this was a thread on how to pickup. lol.
bennydickson
December 7th, 2004, 06:34 AM
Hey, well i meant i want a time in which u cant shoot ie. bany x6 then u have to wait and reaload b4 u can shoot again
bennydickson
December 7th, 2004, 06:38 AM
int = 500;
i = 0;
_root.onEnterFrame = function(){
if(i == int){
//choose random mc to play
var ranMc = Math.random*5+1; <-- if you have 6 mcs
_root["mcname"+ranMc].gotoAndPlay(2);
i = 0;
}
i++
}
Theres an erro in t3h code i cant fix!
SeiferTim
December 7th, 2004, 01:21 PM
Well, if you aleady have the code to shoot, then just before you perform those actions, have an if/then statement like:
if (bullets > 0) {
//do the shooting
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.