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

#1 2011-01-24 21:58:52

jazed13
Scratcher
Registered: 2011-01-14
Posts: 20

help with enemy movement

I want an uncortolled sprite to move arpund wen the main sprite moves towards it (right now all i got is change x/y by random -100 to 100. how to make a spritie move around. also i want to make a stealth part to my game but how to make a sprite react wen they can see u (not behind somen) ive heard of senser sprites but idk wat it is what it looks like and wat script to use....


Subscribe To The Scratch Tuturial Groups's Channel! http://www.youtube.com/user/Jazed13?feature=mhum
http://i1199.photobucket.com/albums/aa463/Jazed14/Subscribe.pnghttp://i1199.photobucket.com/albums/aa463/Jazed14/aspoKWEJ.gif

Offline

 

#2 2011-01-24 22:07:07

jazed13
Scratcher
Registered: 2011-01-14
Posts: 20

Re: help with enemy movement

And wat i meant was controlled sprite A and uncontrolled sprite B (meanin that sprite A is controleed by player) when A moved toward B, B moves away....


Subscribe To The Scratch Tuturial Groups's Channel! http://www.youtube.com/user/Jazed13?feature=mhum
http://i1199.photobucket.com/albums/aa463/Jazed14/Subscribe.pnghttp://i1199.photobucket.com/albums/aa463/Jazed14/aspoKWEJ.gif

Offline

 

#3 2011-01-24 22:17:26

pannulaa1
Scratcher
Registered: 2010-10-16
Posts: 100+

Re: help with enemy movement

i think i kind of see what you mean... im good at ai sprites and if you give me a demo and a BIG description of what you want it to do + some sprites to make the boss out of i can help you with the enemy

Offline

 

#4 2011-02-05 18:12:20

jazed13
Scratcher
Registered: 2011-01-14
Posts: 20

Re: help with enemy movement

Like it lets say i have sprite "1" 3 ft away from sprite 2, and sprite 1 moves 1 ft closer, than sprite 2 move 1 ft away. and if he gets too close it goes up....
yeah sorry i thought i would have gotten a message saying u posted here


Subscribe To The Scratch Tuturial Groups's Channel! http://www.youtube.com/user/Jazed13?feature=mhum
http://i1199.photobucket.com/albums/aa463/Jazed14/Subscribe.pnghttp://i1199.photobucket.com/albums/aa463/Jazed14/aspoKWEJ.gif

Offline

 

#5 2011-02-05 22:54:34

08jackt
Scratcher
Registered: 2007-09-12
Posts: 1000+

Re: help with enemy movement

try this:

<when green flag clicked>
<forever>
<if> <( <distance to[ player ]> <<> 230  )>
<point towards( player )>
<move( 5 )steps>

tell me if you want me to make an example project  smile


http://i39.tinypic.com/jgtswi.png

Offline

 

Board footer