Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 6 of 6

Thread: Make guys pop up randomly

  1. #1

    Make guys pop up randomly

    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.


  2. #2
    welcome to the forums! some one asked this a week or two ago, you can view the thread here (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?

  3. #3
    hahaha, i thought this was a thread on how to pickup. lol.

  4. #4
    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

  5. #5
    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
    i = 0;
    Theres an erro in t3h code i cant fix!

  6. #6
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012