|
-
Feb 9th, 2003, 11:37 AM
#1
Thread Starter
Junior Member
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
:-)
-
Feb 9th, 2003, 08:53 PM
#2
Fanatic Member
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.
-
Feb 9th, 2003, 09:22 PM
#3
Frenzied Member
You can remove the call the abs(), since the square of any number is positive, by nature. Thats also geometry, not trig =)
Z.
-
Feb 9th, 2003, 09:32 PM
#4
Fanatic Member
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.
-
Feb 10th, 2003, 05:21 PM
#5
Thread Starter
Junior Member
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
:-)
-
Feb 10th, 2003, 05:48 PM
#6
Use the key_down events....
-
Feb 10th, 2003, 06:17 PM
#7
Member
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
-
Feb 10th, 2003, 10:31 PM
#8
Lively Member
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
-
Feb 11th, 2003, 03:22 AM
#9
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...
-
Feb 11th, 2003, 08:36 PM
#10
Lively Member
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
-
Feb 13th, 2003, 04:32 PM
#11
Fanatic Member
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).
-
Feb 13th, 2003, 06:01 PM
#12
Lively Member
My thoughts exactly
www.mindset1.com
Religious Debate Forums
-
Feb 15th, 2003, 10:18 AM
#13
Thread Starter
Junior Member
If once u don't susceed, Get the info from someone else. lol
:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|