Results 1 to 13 of 13

Thread: Im New to Game Programing

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Location
    Ohio
    Posts
    20

    Im New to Game Programing

    Hi,
    I have been programing for 2 years and I am getting pretty good. I am trying to make a program that the user fight agents. the user is aoing to be an agent also. I have the car. file being made and I was wondering is there any why to make each of them fight when you get close to eachother?? Is there an easer way. Who can I get the controles for the car. How do I get the randomized background when the user starts. And all the basic stuff that I might need to know.
    If once u don't susceed, Get the info from someone else. lol
    Code:
    Me = ok
    U = Good
    :-)

  2. #2
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    For the close thing:

    You can use trigonometry to figure when they get close.

    Distance = sqr(abs(Ux - HimX)^2+abs(Uy+HimY)^2)

    Then use an if...then...else for when distance < Z
    Don't pay attention to this signature, it's contradictory.

  3. #3
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    You can remove the call the abs(), since the square of any number is positive, by nature. Thats also geometry, not trig =)

    Z.

  4. #4
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Woops lol, it's a bit late .
    Anyways, it is to find the length of a side of a triangle using the other sides?? Sounds like trig to me... (similar at least.. using 2 values (3 if you count 90deg...) to get another value)

    I was taught it when I was taught trig too, so
    Don't pay attention to this signature, it's contradictory.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Location
    Ohio
    Posts
    20
    Thanks for the help, but how do i get my cariticer to move with the arrow keys? How do I have the cariticers fight if there is a certain key pressed for example Shift+Enter+Z=fight
    If once u don't susceed, Get the info from someone else. lol
    Code:
    Me = ok
    U = Good
    :-)

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Use the key_down events....

  7. #7
    Member CrazedWombat's Avatar
    Join Date
    Oct 2002
    Location
    asylum
    Posts
    47
    hey Noteme, dude man your all over this site, you should become a moderator..heheh
    Wombat

    "I like to go to the schoolyard where i can watch the little kids jumping and screaming....but they dont know im using blanks"

    "Before you set yourself on fire, remember to take off your shoes... nothing smells worse than burning rubber."

    "They advertise that certain laundry detergents can take blood stains out of clothes, i say that if you have blood stains on your clothes, maybe your laundry is the least of your worries."

    Sometimes when I'm driving around I see a sign that says, CAUTION: SMALL CHILDREN PLAYING. I slow down, and then it occurs to me: I'm not afraid of small children.

    "My programs dont have bugs, they have random features" - MisianThrop

    "The good thing about our ticket to the future is that it's always blank" - Trigun

  8. #8
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    Lol. You guys are funny.

    But you're kidding, right? You can't even spell character right. Lol, sorry, no offense, meant...but uh, I advise looking up the simpler things yourself at a search engine. (These guys are just messin' with ya anyway)

    Viel Glück,
    Steve W-man
    www.mindset1.com
    Religious Debate Forums

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I'm not kidding with anyone. I will help everyone that needs some help. And if you are complaining about my spelling, so just do it. I don't care. I know I'm not good in English, but I am trying. So E-man07 just ask questions, I will answer...

  10. #10
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    Lol. No, don't get all offended, I wasn't talking about you. You didn't even have the word character in your reply. So it's not your spelling. I'm "sorry"
    www.mindset1.com
    Religious Debate Forums

  11. #11
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    These are some pretty simple questions though, E-Man, I would suggest learning way more befre you start making a game. There is also no 'car' control (if by car you mean character). Its a picture that gets displayed on the screen. So I guess actually that you could use the PictureBox, or Image controls (or nest an image inside the picturebox, best idea).

  12. #12
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    My thoughts exactly
    www.mindset1.com
    Religious Debate Forums

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Location
    Ohio
    Posts
    20
    thanks for all the help
    If once u don't susceed, Get the info from someone else. lol
    Code:
    Me = ok
    U = Good
    :-)

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