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

#1 2011-03-12 01:23:33

SpaceBandit1000
New Scratcher
Registered: 2011-03-12
Posts: 4

AI enemy

Hi!
I want to know how to make an AI that:
pops out every so often and, if your player gets too close, it lunges then tries to attack.

I'm kinda new, and when I searched the forums for AI scripts, they were SOOO long I couldn't make head or tails of it!
Is there a way to make an AI with shorter scripts??

Thank you!
smile

Offline

 

#2 2011-03-12 01:30:15

SpaceBandit1000
New Scratcher
Registered: 2011-03-12
Posts: 4

Re: AI enemy

What I really need is something like "Glide 1 seconds to Player 1"
.....  hmm

Offline

 

#3 2011-03-12 01:32:04

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: AI enemy

[Glide to x: (x position of Player 1) y: (y position of Player 1)]


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#4 2011-03-12 01:43:37

SpaceBandit1000
New Scratcher
Registered: 2011-03-12
Posts: 4

Re: AI enemy

*GASP!!* that "glide to Xpos" works!! thanks!  smile

Offline

 

#5 2011-03-12 02:13:07

SpaceBandit1000
New Scratcher
Registered: 2011-03-12
Posts: 4

Re: AI enemy

OKAY! that solved it! thanks floppy_gunk!  big_smile

Offline

 

#6 2011-03-12 13:46:59

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: AI enemy

Your welcome!  smile


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

Board footer