Discuss Scratch

masterninja321
Scratcher
19 posts

advanced clone detection

Is there a way to make sprites point toward clones (like in Will_Wam's tower games ) if so please reply
Skill_Games
Scratcher
69 posts

advanced clone detection

Yes, though it takes some time. First, create clones with lists to store their positions:
change [id v] by (1)
create clone of [myself v]
when I start as a clone
add (x position) to [list x v]
add (y position) to [list y v]
Update(id)

define Update(ID)
forever
replace item (ID) of [list x v] with (x position)
replace item (ID) of [list x v] with (y position)
end

I reccomend looking looking at this page on the Scratch Wiki to figure out how to point towards coordinates.

Play ☁ Boats 《Beta》 Want to play a cloud multiplayer game with up to ten players? Click the link to the left!





deck26
Scratcher
1000+ posts

advanced clone detection

Search for ‘nearest clone’ to see some examples.

Powered by DjangoBB

Standard | Mobile