This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-07-18 00:19:11

Bioniclefan4
Scratcher
Registered: 2009-05-26
Posts: 87

Ai

I'm making a game and I would like to include AI. But I don't know how to. If you know how to, could you please tell me via using blocks in your post? I can only think of making a variable that picks random actions based on the distance from the player. And I am planning to make it for a SSB-style game.


http://imagehosting.jumbee.net/show/image/01d_spliceshopbanner.png

Offline

 

#2 2009-07-18 05:23:35

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Ai

You are on the right track.  When making an AI, think about how you would play the character as a human.  Then, try and figure out how to do similar actions with what the computer has to work with.  Random actions are a very important part of making interesting AI behavior. 

Have you looked at other SSB type games on Scratch to see how they handled the AI issue?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2009-07-18 13:40:57

Bioniclefan4
Scratcher
Registered: 2009-05-26
Posts: 87

Re: Ai

Paddle2See wrote:

You are on the right track.  When making an AI, think about how you would play the character as a human.  Then, try and figure out how to do similar actions with what the computer has to work with.  Random actions are a very important part of making interesting AI behavior. 

Have you looked at other SSB type games on Scratch to see how they handled the AI issue?

Yes, I have, but the only one I've seen with AI is Super smah bros. ball, but if I scout around a bit, i should be able to find just what I'm looking for. Thanks!


http://imagehosting.jumbee.net/show/image/01d_spliceshopbanner.png

Offline

 

#4 2009-07-18 14:46:04

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Ai

I have made a very basic soccer game http://scratch.mit.edu/projects/dav09/492209 containing an AI

Offline

 

#5 2009-07-18 15:00:06

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Ai

http://scratch.mit.edu/forums/viewtopic.php?id=2798

This might help


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#6 2009-07-18 22:28:49

Bioniclefan4
Scratcher
Registered: 2009-05-26
Posts: 87

Re: Ai

Thanks, archmage!


http://imagehosting.jumbee.net/show/image/01d_spliceshopbanner.png

Offline

 

Board footer