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

#1 2011-02-11 22:15:09

uzumaki69naruto
Scratcher
Registered: 2011-01-04
Posts: 17

Need Help For Moving AI

Hey Thanks For All Your Help For All Guys!
I Got A New Problem Now How Can You Make An AI That Can Move I Already Know How To Make It Attack The Thing Now Is To Make It Move, Any Ideas...?

Offline

 

#2 2011-02-11 22:28:14

blahdeblah
Scratcher
Registered: 2008-02-19
Posts: 45

Re: Need Help For Moving AI

You're not very specific...
So I'm just going to give general help:
It needs to be able to 1) know where the player is, 2) find a route to the player, 3) know how to avoid the player's attacks, and 4) attack the player.
A more advanced AI will be able to adapt to the player's moves and kinda predict the next move. An AI cannot just use "pt to sprite x" imo because that's cheating  big_smile  But it can get information about the player and its environment using sensor sprites.
I'm not that great with AI but that should get you started.
And try this project, which is a decent example:
http://scratch.mit.edu/projects/buddha108/391692

Offline

 

#3 2011-02-12 08:47:07

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Need Help For Moving AI

It depends completely on lots of things you have not talled us.
Here is a simple one:

[Forever]
[] [ Point towards (Player) ]
[] [ Move (10) steps ]
[_______]

Offline

 

Board footer