For what kind of game? What is the purpose of the AI?
Offline
AI is artificial intelligence. It gives the computer random actions to a specific point. Useful for a game that enables the option of one to four players. Or just one or two. Possibly more. You add AI so all games don't require 2 people to play. For example, a shooter game might require random movements for a computer player. A racing game requires a specific path, velocity, and actions to do when abnormal objects are near. You get the point. I can make a script for you if you tell me what game you're making.
Last edited by Kingdaro (2008-07-17 20:38:43)
Offline
Ok here's what you can do...
[blocks]
Make a variable <{ AI }>
<when green flag clicked>
<forever>
<wait( <pick random( 1 )to( 5 )secs>
<set{ AI }to( <pick random( 1 )to( 2
<end>
<when green flag clicked>
<forever>
<if> <( <{ AI }> <=> 2 )>
<point towards( Player
<move( 3 )steps>
<end>
<end>
<when green flag clicked>
<forever if> <( <{ AI }> <=> 2 )>
<wait( <pick random( .9999 )to( 1.9999 )secs>
<broadcast[ fire bullet
<end>
[/blocks]
If this doesn't work, then just tell me I'll try to correct it. And the variable is supposed to be AI not A.
Last edited by Kingdaro (2008-07-18 06:51:41)
Offline
Kingdaro wrote:
Ok here's what you can do...
[blocks]
Make a variable <{ AI }>
<when green flag clicked>
<forever>
<wait( <pick random( 1 )to( 5 )secs>
<set{ AI }to( <pick random( 1 )to( 2
<end>
<when green flag clicked>
<forever>
<if> <( <{ AI }> <=> 2 )>
<point towards( Player
<move( 3 )steps>
<end>
<end>
<when green flag clicked>
<forever if> <( <{ AI }> <=> 2 )>
<wait( <pick random( .9999 )to( 1.9999 )secs>
<broadcast[ fire bullet
<end>
[/blocks]
If this doesn't work, then just tell me I'll try to correct it. And the variable is supposed to be AI not A.
It dosent really work.
Offline
keroro645 wrote:
Kingdaro wrote:
Ok here's what you can do...
[blocks]
Make a variable <{ AI }>
<when green flag clicked>
<forever>
<wait( <pick random( 1 )to( 5 )secs>
<set{ AI }to( <pick random( 1 )to( 2
<end>
<when green flag clicked>
<forever>
<if> <( <{ AI }> <=> 2 )>
<point towards( Player
<move( 3 )steps>
<end>
<end>
<when green flag clicked>
<forever if> <( <{ AI }> <=> 2 )>
<wait( <pick random( .9999 )to( 1.9999 )secs>
<broadcast[ fire bullet
<end>
[/blocks]
If this doesn't work, then just tell me I'll try to correct it. And the variable is supposed to be AI not A.It dosent really work.
To tell the truth that script seems immistakeable. It has to work.
Offline
keroro645 wrote:
I just dont like how the script works.
Look at my presentation Not-So-Simple Ai and my tanks demo, and you can use some of the scripts for your game if you would like.
Offline
We could probably be alot more helpfull if you were more descriptive, what EXACTLY is the problem? Do they walk into walls? Not shoot enough? What dont you like about it?
Offline
smkymcpimsht wrote:
We could probably be alot more helpfull if you were more descriptive, what EXACTLY is the problem? Do they walk into walls? Not shoot enough? What dont you like about it?
Well, I was helping, and they need to shoot the player and avoid walls. And know the players position at ALL times

Offline