Discuss Scratch

THEPUG_GAMER
Scratcher
7 posts

How to make clones go to clones

I am making a game where collectibles (clones) can spawn. If you don´t collect one within 5 seconds, they despawn and create bullets that move outwards. Unfortunately, I do not know how to make the clones of the bullets to go to the position of the collectible clones. If you could help me with this, I would appreciate it.

Last edited by THEPUG_GAMER (Oct. 17, 2022 16:14:14)

2dav
Scratcher
91 posts

How to make clones go to clones

You could use the “point in direction (sprite)” block or “glide(whatever) seconds to (sprite)? Does this help?
THEPUG_GAMER
Scratcher
7 posts

How to make clones go to clones

2dav wrote:

You could use the “point in direction (sprite)” block or “glide(whatever) seconds to (sprite)? Does this help?
If I tried to do that. It would go the original sprite. I´m trying to make it go the clone that triggered it.
enalecks
Scratcher
15 posts

How to make clones go to clones

THEPUG_GAMER wrote:

2dav wrote:

You could use the “point in direction (sprite)” block or “glide(whatever) seconds to (sprite)? Does this help?
If I tried to do that. It would go the original sprite. I´m trying to make it go the clone that triggered it.

ontheclonedsprite:whenclickedcreatecloneofmyselfwhenIstartasacloneforeversetclone xtoxpositionsetclone ytoypositiononthespritegoingtotheclone:whenclickedforevergotox:clonexy:cloney

hopefully that's what you meant
THEPUG_GAMER
Scratcher
7 posts

How to make clones go to clones

enalecks wrote:

THEPUG_GAMER wrote:

2dav wrote:

You could use the “point in direction (sprite)” block or “glide(whatever) seconds to (sprite)? Does this help?
If I tried to do that. It would go the original sprite. I´m trying to make it go the clone that triggered it.

ontheclonedsprite:whenclickedcreatecloneofmyselfwhenIstartasacloneforeversetclone xtoxpositionsetclone ytoypositiononthespritegoingtotheclone:whenclickedforevergotox:clonexy:cloney

hopefully that's what you meant
Sorry, but I decided to change it
THEPUG_GAMER
Scratcher
7 posts

How to make clones go to clones

THEPUG_GAMER wrote:

enalecks wrote:

THEPUG_GAMER wrote:

2dav wrote:

You could use the “point in direction (sprite)” block or “glide(whatever) seconds to (sprite)? Does this help?
If I tried to do that. It would go the original sprite. I´m trying to make it go the clone that triggered it.

ontheclonedsprite:whenclickedcreatecloneofmyselfwhenIstartasacloneforeversetclone xtoxpositionsetclone ytoypositiononthespritegoingtotheclone:whenclickedforevergotox:clonexy:cloney

hopefully that's what you meant
Sorry, but I decided to change it I removed the collection part and just made it a bullet bomb. You can still collect the bananas though.
cs2722201
Scratcher
100+ posts

How to make clones go to clones

ScratchDev32
Scratcher
1 post

How to make clones go to clones

The
atreides-pao
New Scratcher
1 post

How to make clones go to clones

enalecks wrote:

THEPUG_GAMER wrote:

2dav wrote:

You could use the “point in direction (sprite)” block or “glide(whatever) seconds to (sprite)? Does this help?
If I tried to do that. It would go the original sprite. I´m trying to make it go the clone that triggered it.

ontheclonedsprite:whenclickedcreatecloneofmyselfwhenIstartasacloneforeversetclone xtoxpositionsetclone ytoypositiononthespritegoingtotheclone:whenclickedforevergotox:clonexy:cloney

hopefully that's what you meant

Last edited by atreides-pao (Dec. 5, 2024 04:43:27)

ametrine_
Scratcher
1000+ posts

How to make clones go to clones

ScratchDev32 wrote:

The

atreides-pao wrote:

-snip-
please don't necropost
JustPeaceMaker
Scratcher
5 posts

How to make clones go to clones

whenclickeddeletethislistofcloned x positionsdeletethislistofcloned y positionsforeverwait0.1secondsdeletethislistofcloned x positionsdeletethislistofcloned y positionsrepeatnumberofclonesaddxpositionofcloned spritetocloned x positionsaddypositionofcloned spritetocloned y positionsifdistancetoitem1ofcloned x positionsitem1ofcloned y positions>5turntowardsitem1ofcloned x positionsitem1ofcloned y positionsmove5steps

Last edited by JustPeaceMaker (Dec. 31, 2024 10:42:06)

ohioguy123cool
Scratcher
2 posts

How to make clones go to clones

move10steps
abrakaidabra
Scratcher
100+ posts

How to make clones go to clones

ohioguy123cool wrote:

move10steps
Please don’t necropost. If you want to test scratchblocks, there is an official sticky at the top of the help with scripts forum.
cosmosaura
Scratch Team
1000+ posts

How to make clones go to clones

Topic closed due to necroposting.

Powered by DjangoBB