AI for my paintball game

WeavMan
03-08-2002, 09:42 PM
Well I bit off a little to much, I have to do a project for school. I have choose to do a paintball game with my friend, and we figured out how to get a charcter to run around. We made it stop at the walls and bunkers, I am really stumped now, I can not figure out how to get the charcter to shoot a paintball. Also The AI code that that one person gave out is not working, IF ANYONE HAS CODE THAT CAN HELP ME PLEASE POST IT OR E-MAIL IT TO ME @ WEAVDOGG62@YAHOO.COM



Thanks
--Weav--:)

wild wolf
03-08-2002, 11:34 PM
wow you have guts buddy to ask for a code in an open forum :D

Kitaiko
03-09-2002, 05:04 AM
Originally posted by wild wolf
wow you have guts buddy to ask for a code in an open forum :D
wha? I dont get it

ChiefRedBull
03-09-2002, 05:08 AM
To ask such a vague question is not going to elicit helpful responses.
If we could see your code so far? Or even just relevant parts or it? What have you tried already to make the man shoot his paintball?

To fire the paintball will require animation of some sort, but the way you implement it depends greatly on what you've done so far.
A little more information will get you everywhere...

wild wolf
03-09-2002, 06:31 AM
Originally posted by ChiefRedBull
To ask such a vague question is not going to elicit helpful responses.
If we could see your code so far? Or even just relevant parts or it? What have you tried already to make the man shoot his paintball?

To fire the paintball will require animation of some sort, but the way you implement it depends greatly on what you've done so far.
A little more information will get you everywhere...

there, chief has answered your question kitaiko :D

Kitaiko
03-09-2002, 07:18 AM
Originally posted by wild wolf
wow you have guts buddy to ask for a code in an open forum :D
Originally posted by WeavMan


[QUOTE]Originally posted by Kitaiko

wha? I dont get it


Originally posted by ChiefRedBull
To ask such a vague question is not going to elicit helpful responses.
If we could see your code so far? Or even just relevant parts or it? What have you tried already to make the man shoot his paintball?

To fire the paintball will require animation of some sort, but the way you implement it depends greatly on what you've done so far.
A little more information will get you everywhere...


Originally posted by wild wolf


there, chief has answered your question kitaiko :D

AND I QUOTE ... thanx

WeavMan
03-09-2002, 08:41 AM
Ok I have a picture of a little paintball, I have tried a few if then statements, none of them came close to working. I am not real experienced. I have been working out of a book in school, and am not sure if i need some kind of equation or something. I have so when you push the up arrow the pictures change, it looks like he is running. I have them on a timer. My code is at school, all i can tell you is that i used form_keydown. I know i probally sound like an idiot but I am trying to get into game programming with Vb. I have made a few but never any with a charcter that moves.

Thanks oh yeah wild wolf what are you talking about i can't understand you. I have guts?


---Weavman---;)

Iceplug
03-09-2002, 11:33 AM
Hmm... I can't figure out what you are doing besides moving and the picture of the paintball - what is it doing?
The paintball could also be moving in a timer.
The questioning is still vague... I can't say anything else.

Kitaiko
03-09-2002, 04:53 PM
I dont know wat you mean but will this help?:





If firebutton is pushed then

If playerdirection = left then paintballdirection = left
If playerdirection = right then paintballdirection = right
If playerdirection = up then paintballdirection = up
If playerdirection = down then paintballdirection = down

end if


if paintballdirection = left then paintball.left = paintball.left - 1
if paintballdirection = right then paintball.left = paintball.left + 1
if paintballdirection = up then paintball.top = paintball.top - 1
if paintballdirection = down then paintball.top = paintball.top + 1

Squirm
03-09-2002, 05:30 PM
Projectiles (http://www.rookscape.com/vbgaming/tutAA.php) (Luckys VB)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum