01-21-2006, 11:42 AM
|
#1
|
|
|
AI vs. AI - battle!
Hey, I just got a cool idea, let's make an AI enemy, and
let them fight against each other! The smartest would win.
To make it harder to win against the other,
we have to make some limits for speed, attacks
shields, shooting, ect!
The style of the "fight" can be anything; space ships, platform game,
fighting game, balloons, ect.
Then, the two AI's names could be ai1 and ai2.
Everything is going to be maked in Flash.
Anyone intrested? 
Last edited by Pattt; 01-24-2006 at 02:32 PM..
|
|
|
01-21-2006, 11:50 AM
|
#2
|
|
|
good idea, but you'll have to explain it better
I mean ai's of platform game's and space shooter's enemies are way different. In fact, you could make a much better AI if the platform/enviroment was given.
__________________
work in progress
|
|
|
01-21-2006, 01:23 PM
|
#5
|
|
|
that's great
btw the idea isn't that bad, but I guess creating a good envirmoent would be harder then programing the ai
__________________
work in progress
|
|
|
01-21-2006, 02:06 PM
|
#7
|
|
|
I think Flash is a good platform for this, because it's quite
easy.  Here's an example. (I can do much better than this,
but I have not time for it right now)
However, if anyone have ideas, post it here!
Maybe someone else would make the rules,
I'm not so good at that.. 
|
|
|
01-21-2006, 02:51 PM
|
#8
|
|
|
think this is a verry cool idea for a battle!
you should be able to add your own wapens (that follow the rules of mother earth and the enviroment) 
__________________
<! currently working on my online portfolio !>
Previous known as BOKKE...
|
|
|
01-21-2006, 02:57 PM
|
#9
|
|
|
that swf is stupid...
A fighting game can not really have an ai except something like random kick, punch, hit, die
an enviroment must be made for first, and rules shall be made about what the ai is allowed to do (ie: if there were no limitations, I would just simply program a gun that deletes everything from the stage, and I would also make myself able to teleport so no bullets can hit me)
__________________
work in progress
|
|
|
01-21-2006, 05:38 PM
|
#11
|
|
|
Quote:
|
Originally Posted by sed|thh
I would just simply program a gun that deletes everything from the stage, and I would also make myself able to teleport so no bullets can hit me)
|
yeah you're right, first there should be a enviroment with some rules like:
- max jumpheight
- max runspeed
- the gravity
- no teleporting 
__________________
<! currently working on my online portfolio !>
Previous known as BOKKE...
|
|
|
01-22-2006, 06:47 AM
|
#15
|
|
|
Quote:
|
Originally Posted by senocular
See, this is where it gets confusing and complicated.
I think what you need is, instead of setting limits, to have a set interface from which an AI instance is able to interact with and get information from. It cant do anything other than use that interface - a set number of predefined methods that the AI can use from a primary "battle" or "environment" object, or whatever you want to call it. The AI just runs through an onEnterFrame loop and calls methods from the battle object to do its thing.
Methods in the interface could include things like:
ActionScript Code:
getLocation()
getVisible()
turnLeft()
turnRight()
moveForward()
firePrimaryWeapon()
fireSecondaryWeapon()
engageShield()
Events could also fire for the AI letting it know when it gets hit by enemy fire or hits a wall or whatever. This allows each person involved in the battle to have the same limits and capabilities making the actual AI or behavior the determining factor in success.
|
this is absolutely right  I guess you've just created the very basics of the enviroment senocular!
here are some more extensions:
walkLeft();
walkRight(); //instead of turning
reloadPri(); and reloadSec();
speed(); //this could be increased or decreased, but if your speed gets too high you won't be able to run for too long. The character will become tired and won't be able to move. This coul be a mind breaking task to write a script determining wheter the player should run or not.
getFlag(); whereIsFlag(my/enemy); //this could be added later when the ais get better. A ctf game would be more exciting and more knowledge is requied in AS to win these games
any other ideas?
__________________
work in progress
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 11:19 PM.
|
|