Discuss Scratch

ehjert
New Scratcher
2 posts

How to make clone (of other sprite) move the direction of my sprite

Hi.

I'm very new to scratch and I'm doing a try on a game where I would like my main character (a beetle) to shoot. I have figured out how to clone the “shot” and how to shoot it, but it only fires one way. I have tried to point it the way my character is facing, but it only shoots the way that the shot is faced in its original form.
How do I make it fire in the direction of the beetle.

Hope this question makes sense. I have shared my game. Would really appreciate if someone could have a look at it.

Thanks in advance.

Last edited by ehjert (June 13, 2018 12:28:17)

deck26
Scratcher
1000+ posts

How to make clone (of other sprite) move the direction of my sprite

You're close - use the point in direction block instead of point towards.

point in direction ([direction v] of [beetle v])
ehjert
New Scratcher
2 posts

How to make clone (of other sprite) move the direction of my sprite

Thank you so much. I must have seen this block in other descriptions, but probably got a bit confused in the translation of blocks since mine are in Swedish.

Thank you once again!
29_Studio
Scratcher
100+ posts

How to make clone (of other sprite) move the direction of my sprite

when I start as a clone
glide (1) secs to x: ([x] of [Sprite1 v]) y: ([y] of [Sprite1 v])

Last edited by 29_Studio (June 13, 2018 16:00:50)

deck26
Scratcher
1000+ posts

How to make clone (of other sprite) move the direction of my sprite

29_Studio wrote:

when I start as a clone
glide (1) secs to x: ([x] of [Sprite1 v]) y: ([y] of [Sprite1 v])
That will move in that direction but doesn't tell the sprite to point in the direction which is what was asked for.
SUPERSCRATCHRER
New Scratcher
1 post

How to make clone (of other sprite) move the direction of my sprite

HELLO, I SAW @deck26'S POST. I DON'T KNOW WETHER YOU ARE CORRECT OR NOT BECAUSE I AM VERY VERY VERY NEW TO SCRATCH PLS TELL ME THE CODE CAUSE I WANT TO MAKE A SPACE SHOOTER GAME PLS HELP
deck26
Scratcher
1000+ posts

How to make clone (of other sprite) move the direction of my sprite

SUPERSCRATCHRER wrote:

HELLO, I SAW @deck26'S POST. I DON'T KNOW WETHER YOU ARE CORRECT OR NOT BECAUSE I AM VERY VERY VERY NEW TO SCRATCH PLS TELL ME THE CODE CAUSE I WANT TO MAKE A SPACE SHOOTER GAME PLS HELP
Please create your own new topic and explain what you need. Also don't post in all-capitals which is considered the same as shouting in real life.
ventoaurum
Scratcher
100+ posts

How to make clone (of other sprite) move the direction of my sprite

SUPERSCRATCHRER wrote:

HELLO, I SAW @deck26'S POST. I DON'T KNOW WETHER YOU ARE CORRECT OR NOT BECAUSE I AM VERY VERY VERY NEW TO SCRATCH PLS TELL ME THE CODE CAUSE I WANT TO MAKE A SPACE SHOOTER GAME PLS HELP
chill and watch this
Grumpy_P0tat0
Scratcher
4 posts

How to make clone (of other sprite) move the direction of my sprite

deck26 wrote:

You're close - use the point in direction block instead of point towards.

point in direction ([direction v] of [beetle v])
try this by Deck26 it worked for me

Powered by DjangoBB