Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Off-Topic
»
Archive
»
Old Game Discussion
»
Football's dream (demo)
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Football's dream (demo) (Read 4462 times)
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #15 on:
February 22, 2006, 11:31:32 PM »
0.o
Yeah, anyway, you would have to record the x and y possition of every player in variables. Then you would have to subtract the balls locations from every player. If the values are negitive, multiply them by -1 to get the absolute value. Compare the numbers and which ever one is smallest is the on that's clostest to the ball. Then you would have to make a switch that once a player is controlled, no other player will go under your controll if they are the same distance, because otherwise as your running, you could accidently switch over to another player.
Then the AI, you have to check their possition compared to the possition of the player that you're controlling, and if they're really close, have them spread out. Have them go for the ball, and other stuff like that.
I could go over everything in depth if you want. I doubt you could pull much out of that :p. I just didn't want to spend a few hours writing something detailed that wouldn't be used.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
Claudio84
Member
Initiate
Posts: 4
(No subject)
«
Reply #16 on:
February 23, 2006, 08:26:38 AM »
Hello DragonBlaze, your councils are many profits, you are very good in the programming. I make you one proposed: you want to help me in the programming of my game? If you want we can divide the job, you are more good than me in the programming...please answerd me, bye Claudio
Logged
Print
Pages:
1
[
2
]
« previous
next »
Charas-Project
»
Off-Topic
»
Archive
»
Old Game Discussion
»
Football's dream (demo)