Discuss Scratch

bloxxer
Scratcher
100+ posts

Follow 3 sprites with "follow modes" (target modes), how?

There is the sprite friend_clone. You can choose 2 types of aiming for him:
Nearest to self
Nearest to down

There are 3 enemies. enemy_clone, enemy_clone2 and enemy_clone3.
Now, does anybody have scripts that friend_clone
Follows nearest to self, ex. enemy_clone2 is nearest, touch enemy_clone2 at highest priority.
Follows nearest to down, ex. enemy_clone3 is nearest at bottom, touch enemy_clone3 at highest priority.


Hello if you can read this is a stupid mistake.
turkey3
Scratcher
1000+ posts

Follow 3 sprites with "follow modes" (target modes), how?

It's possible, but in a list you have to have each clone store its distance away and have the friend clone choose the lowest item#, which will correspond to the clones identity. Ill prepare a script that should be done in a while.

bloxxer
Scratcher
100+ posts

Follow 3 sprites with "follow modes" (target modes), how?

bump?


Hello if you can read this is a stupid mistake.
turkey3
Scratcher
1000+ posts

Follow 3 sprites with "follow modes" (target modes), how?

I hve a preview of the script so far here.. Honestly, using clones for this is VERY difficult. If you'll only have 3 clones, its honestly easier to use 3 separate sprites. Let me know if you want me to continue the script. It's in the scripts sandbox at the link above.

Last edited by turkey3 (July 2, 2013 02:13:59)


Powered by DjangoBB