Discuss Scratch

PizzaMaker45678910
Scratcher
100+ posts

how make skeleton shoot

I fixed it now, so don't post here

Last edited by PizzaMaker45678910 (June 18, 2021 12:38:07)

BatteRaquette58
Scratcher
100+ posts

how make skeleton shoot

Put this in the skeleton sprite:
whenIstartasacloneforeverif75>distancetoPlayerthenbroadcastshoot arrowwait3secs
Put this in the arrow sprite:
whenIreceiveshoot arrowcreatecloneofmyselfwhenIstartasaclonegotoSkeletonpointtowardsPlayershowrepeatuntiltouchingPlayer?move5stepsbroadcastarrow hit playerdeletethisclone
Hope this helped!

Last edited by BatteRaquette58 (June 17, 2021 20:04:03)

Oumuamua
Scratcher
1000+ posts

how make skeleton shoot

BatteRaquette58 wrote:

Put this in the skeleton sprite:
whenIstartasacloneforeverif75>distancetoPlayerthenbroadcastshoot arrowwait3secs
Put this in the arrow sprite:
whenIreceiveshoot arrowcreatecloneofmyselfwhenIstartasaclonegotoSkeletonpointtowardsPlayershowrepeatuntiltouchingPlayer?move5stepsbroadcastarrow hit playerdeletethisclone
Hope this helped!

Well, and if the clone never touches the player?
What you think could happen?
Think about a bit…
PizzaMaker45678910
Scratcher
100+ posts

how make skeleton shoot

BatteRaquette58 wrote:

Put this in the skeleton sprite:
whenIstartasacloneforeverif75>distancetoPlayerthenbroadcastshoot arrowwait3secs
Put this in the arrow sprite:
whenIreceiveshoot arrowcreatecloneofmyselfwhenIstartasaclonegotoSkeletonpointtowardsPlayershowrepeatuntiltouchingPlayer?move5stepsbroadcastarrow hit playerdeletethisclone
Hope this helped!
thats the thinng, the clone will go to the original sprite, but not the clone
Cricket_Productions
Scratcher
17 posts

how make skeleton shoot

Can't you store Old Clone X and Old Clone Y in vars?
deck26
Scratcher
1000+ posts

how make skeleton shoot

Much easier to make the skeleton and the arrow both clones of the same sprite with a cloneID variable making them run different code.
PizzaMaker45678910
Scratcher
100+ posts

how make skeleton shoot

deck26 wrote:

Much easier to make the skeleton and the arrow both clones of the same sprite with a cloneID variable making them run different code.
did you read. Its fixed now
deck26
Scratcher
1000+ posts

how make skeleton shoot

PizzaMaker45678910 wrote:

deck26 wrote:

Much easier to make the skeleton and the arrow both clones of the same sprite with a cloneID variable making them run different code.
did you read. Its fixed now
Looks like you edited the original post about the same time as I was writing my response.

Powered by DjangoBB