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

#1 2011-07-02 16:58:54

Sphingo
Scratcher
Registered: 2011-07-01
Posts: 87

Can You Make A Computer Controlled Opponent??????

Well... It's in the name! Thanks

Offline

 

#2 2011-07-02 18:18:05

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Can You Make A Computer Controlled Opponent??????

It is possible to program a computer-controlled opponent in Scratch. How it's programmed depends on the project you want to build (for example, if you're developing a two-player fighting game, you'll want the computer to control a player's attack moves).

You can try looking for computer-controlled opponents by punching in the word "AI" into the search box along with your other search terms.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2011-07-05 07:28:33

eyewebmaster
New Scratcher
Registered: 2011-07-05
Posts: 5

Re: Can You Make A Computer Controlled Opponent??????

Creating computer program is easy as long as you know how to use a programming language..

Offline

 

#4 2011-07-05 11:26:49

Sphingo
Scratcher
Registered: 2011-07-01
Posts: 87

Re: Can You Make A Computer Controlled Opponent??????

What will Al do?

Offline

 

#5 2011-07-05 12:02:44

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Can You Make A Computer Controlled Opponent??????

"AI" is short for Artificial Intelligence.  Cheddargirl is suggesting that you search for projects with "AI" in their tags to get examples of how to do what you want.  Getting a computer opponent to act "intelligent" can be tricky...

Offline

 

#6 2011-07-06 03:11:29

jalkan
Scratcher
Registered: 2009-05-14
Posts: 25

Re: Can You Make A Computer Controlled Opponent??????

well... ive never done this before but i think it will work...

you change the opponents "thoughts" depending on what situation its in. like if it was low on hp and close to the player it would run away and heal

Offline

 

#7 2011-07-06 03:18:29

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: Can You Make A Computer Controlled Opponent??????

The most simple AI of all. Make a script that says, roughly:

Forever
Take one step toward player

When touching player
attack


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

Board footer