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

#1 2009-12-26 14:29:29

andrewcevery
Scratcher
Registered: 2008-03-23
Posts: 28

Need help with AI

Hello! I am working on a platformer but I need help with enemies. They don't need to have realistic physics, but I want them to be able to move, attack, and jump while trying to ram into the player sprite. Well actually they don't need to attack I can figure that out. Thanks in advance

PS: I'll give lots of credit because the enemies are a main part of the game.

Offline

 

#2 2009-12-26 19:45:43

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Need help with AI

AIs are difficult- the easy part would be the physics. A user named Archmage posted this a while back. It isn't hugely advanced and the AI is mainly just a clone of the human player, but it fits your description pretty well.
http://scratch.mit.edu/projects/archmage/76272

If you want an example where it is put into action you can look here:
http://scratch.mit.edu/projects/archmage/71543

Archamge also has several other AI related projects. Check them out!

Offline

 

#3 2009-12-27 09:38:29

andrewcevery
Scratcher
Registered: 2008-03-23
Posts: 28

Re: Need help with AI

Hey thanks but thats not what i'm lookin for
I want it to start in a different position than the player because i'm just asking for a basic, easy enemy
PS for other people, i need it to understand gravity and walls

Offline

 

#4 2009-12-27 11:24:43

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Need help with AI

I think it fits your description pretty well. All you have to do is adapt it. And although you said you didn't think physics were neccesary, since there already there why not use them?

Since the AI "follows" the 1st player, isn't that kind of like ramming into it?

Offline

 

#5 2009-12-27 11:37:09

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Need help with AI

my AI might work check it out. It is called death

Offline

 

#6 2010-01-01 01:08:30

j-max04
Scratcher
Registered: 2009-08-29
Posts: 53

Re: Need help with AI

Test out mine.Badguy attack.


Yesterday is history, Tomorrow is a mystery,
But Today is a gift, That is why they call it the present.

Offline

 

Board footer