Results 1 to 4 of 4

Thread: Question about certain sub procedures

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    9

    Question Question about certain sub procedures

    Hey, I'm making a fairly simple laser shooting game cuz i'm bored and i just would like to know how to make the same sub procedure run more than once at a time, since i'm shooting lasers, i need to shoot more than once at a time. Right now my previous laser is stopping whenever i shoot the next one. If you think you can help me and need my code, just ask for it.

    Thanks.

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Perhaps in a timer? Not sure, but can another instance be created and used?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You need to keep track of the lasers, and update them each frame. If you aren't, you wouldn't be coding in a neat manner and you should learn to do so. There's a lot on OOP and game loops, just search around.

    I'm sorry if that came out a little harsh but if you want your programming to be fun and a learning experience, you should push yourself
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    9

    i think i might have it

    i just think i figured it out, i'll ask more specifically next time if it doesn't work, thanks.

Posting Permissions

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



Click Here to Expand Forum to Full Width