Posted By
|
Message
|
Flava
Registered 30/07/2002
Points 684
|
3rd June, 2004 at 16:20:32 -
As a lot of you know.. When it comes to coding, I suck at it quite frankly..
Well anyway.. When I was playing Fifa 2004, I had the urge to make a football/soccer game in TGF - as there arn't many sport/football games around here.
Obviously, I need help with it..
So far I have made 3 players, and a ball.
If you "collide with the ball", you will start to dribble it. If you press "Ctrl" you can pass the ball.
Bugs -
- If you go right to the edge of the screen (with the ball) and press Ctrl, the ball will go off screen
- If you have the ball and walk into another player, the ball stays with the player you collided with
These are probably faults in my coding.. But i'm a little tired today
So I am posting my engine here for you to check out, improve and give tips on. It isnt finished as I'd rather get the basics done first.
ENGINE: http://www.stereoplasmic.org/flava/uploads/football.gam
Controls -
1 - Change to player 1
2 - Change to player 2
3 - Change to player 3
Ctrl - Pass
Shift - Shoot (Pointless at the moment)
Arrows - Move about
The pressing 1-3 buttons is annoying.. But I did try making it so that when you press X, the person closest to the ball will become selected.. But it didn't turn out right.
I basically want to know:
- Bugs
- Improvement In Code
- Improvements to be added
- Things to change
- How to change them
- Things to add (e.g. curling the ball) and how to do it
Like I said, I suck at coding.. And if I get this engine pretty good, then maybe I could make a game out of it.. But it isn't really my top priority at the moment.
Thanks again,
Gigamesh
This is a signature. Have this one on me.
|
Shme (Stupid Liar) Too late to fornicate
Registered 05/11/2002
Points 574
|
3rd June, 2004 at 18:06:24 -
out of my meddling with a soccer engine of mine i know that the hardest part is the friendly and enemy ai....i have an idea but it would take me months and zilion lines of code to make it decent.
about that X button
Always calculate the distance of the player active object from the ball in an alt value, then create 3 separate "upon pressing X" conditions.
1. Upon pressing x
alt A > alt B
alt A > alt C ==> set active player A
2. Upon pressing x
alt B > alt A
alt B > alt C ==> set active player B
3. Upon pressing x
alt C > alt B
alt C > alt A ==> set active player C
blah
Stinkiest click stuff
http://www.skunk-e.cjb.net
|
|
|