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

#1 2013-02-28 12:05:09

BobMarleyLOL
New Scratcher
Registered: 2013-02-14
Posts: 2

HELP MEEE school project

Hey I'm making a scratch game for my school project and I'm nearly finished but i need to have 2 bad guy sprites follow the 1 good guy sprite and when i tell them to follow the sprite they over lap each other and move in the same places, i was wondering if anyone knew how to get the 2 sprites to follow the 1 sprite but in different places and not over lap each other

Offline

 

#2 2013-02-28 17:51:56

bob6
Scratcher
Registered: 2010-07-01
Posts: 100+

Re: HELP MEEE school project

Well, you'll have to use two different CPU operations for both sprites. If you use the same code for both of them, they'll oughta overlap and go to the same place sooner or later. You could have one sprite point towards you and move, and have the other one be the more "slow" one, and point towards the first enemy and move, that will ensure two enemies runnung after you, one after another.


http://i46.tinypic.com/3148ksz.gif

Offline

 

Board footer