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

#1 2012-04-28 13:25:41

leondoubleh
Scratcher
Registered: 2012-01-29
Posts: 21

Zombie game Help!!

I know how to make the zombies follow your character but if im in a diifrent room they seem to get stuck on the wall and cant get to the room im in.
how do i make the zombies have the intelligence to go round the wall into the room the character is in?? Any ideas??

Offline

 

#2 2012-04-28 13:39:46

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Zombie game Help!!

Just store all of the desired positions on a list and make it glide there accordingly (easy way). For example:

when gf clicked
set [step v] to (0)
forever
 change [step v] by (1)
 glide (speed) secs to x:(item (step) of [positions x v]) y:(item (step) of [positions y v])

Last edited by chanmanpartyman (2012-04-28 13:40:25)

Offline

 

#3 2012-04-28 13:51:16

leondoubleh
Scratcher
Registered: 2012-01-29
Posts: 21

Re: Zombie game Help!!

ive just tried it and it works! thnx  smile

Offline

 

Board footer