Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to tell what direction a sprite is facing?
- gpacademy
-
1 post
How to tell what direction a sprite is facing?
How can we determine what direction a sprite is facing? Not the direction it is *moving*, but the direction the sprite is facing? We have a game where the sprite can move up and down, and left and right, and we want to fire either to the right or left.
Thank you.
Thank you.
- xlk
-
100+ posts
How to tell what direction a sprite is facing?
if <direction>0>
it is facing left
else
it is facing right, duh
Hope that's what you mean!
it is facing left
else
it is facing right, duh
Hope that's what you mean!

- Lone-Wolf
-
87 posts
How to tell what direction a sprite is facing?
What xlk said, there is a block in Motion called direction. 0 is up, 90 is right, -90 is left, and 180 is down. To try this out, create a sprite and make it “Forever point towards mouse pointer” then click the box on the direction block to make the direction amount visible. This will tell you the direction degree.
- dracae
-
1000+ posts
How to tell what direction a sprite is facing?
0 is up, 90 is right, -90 is left, and 180 is down.
I apologize in advance for being a bit of a pest, but:
0 = right ; 90 = up ; 180 is left ; -90 or 270 is down
Just making this correction, so that other Scratchers aren't confused.
Anyways, I just want to point it out!

- kayybee
-
1000+ posts
How to tell what direction a sprite is facing?
Not in scratch. Scratch calculates angles a weird way.0 is up, 90 is right, -90 is left, and 180 is down.
I apologize in advance for being a bit of a pest, but:
0 = right ; 90 = up ; 180 is left ; -90 or 270 is down
Just making this correction, so that other Scratchers aren't confused.
Anyways, I just want to point it out!
You're probably thinking about the way the unit circle and stuff measures angles.
- Lone-Wolf
-
87 posts
How to tell what direction a sprite is facing?
Not in scratch. Scratch calculates angles a weird way.
You're probably thinking about the way the unit circle and stuff measures angles.
Yeah, that's what I thought. I checked the “Make Sprite point in direction” thing. It says what I said, so…
- dracae
-
1000+ posts
How to tell what direction a sprite is facing?
Oh wait, I meant something else… : |
Say you have the scratch cat.
The degree measure for the direction points the cat in different ways.
Whatever, it's kinda confusing anyways…
Say you have the scratch cat.
The degree measure for the direction points the cat in different ways.
Whatever, it's kinda confusing anyways…

- xlk
-
100+ posts
How to tell what direction a sprite is facing?
Scratch measures angle similarly to clock, from top, clockwise. In math, you go from right, counterclokwise. Thing is, switching between them is easy, luckly…
- smartypants367
-
1 post
How to tell what direction a sprite is facing?
How does one switch between the clock notation and vector notation?
- badatprogrammingibe
-
500+ posts
How to tell what direction a sprite is facing?
What is clock notation? How does one switch between the clock notation and vector notation?
EDIT: Also, on a side note, when you want to ask a question, it helps if you do it in a new thread. This way more people can help you.

Last edited by badatprogrammingibe (Sept. 30, 2018 08:14:43)
- deck26
-
1000+ posts
How to tell what direction a sprite is facing?
And you don't bring an old topic back to the top of the forum - people won't necessarily read as far as your question. Creating a new topic is the right way to ask a question.What is clock notation? How does one switch between the clock notation and vector notation?
EDIT: Also, on a side note, when you want to ask a question, it helps if you do it in a new thread. This way more people can help you.
- DFISAWESOME
-
11 posts
How to tell what direction a sprite is facing?
Right-click the sprite you're trying to check and click info. In the top right beneath the camera icon, it will show the direction and next to it, it will show the exact degree. 

Last edited by DFISAWESOME (Oct. 1, 2018 01:00:31)
- deck26
-
1000+ posts
How to tell what direction a sprite is facing?
Please don't necropost - check the date of the topic before you respond. If it's more than ayear old it's rarely worth posting. Right-click the sprite you're trying to check and click info. In the top right beneath the camera icon, it will show the direction and next to it, it will show the exact degree.
- ScratchYTMB
-
100 posts
How to tell what direction a sprite is facing?
i dont think this works lemme checc if <direction>0>
it is facing left
else
it is facing right, duh
Hope that's what you mean!
- The_Imaginarium
-
1000+ posts
How to tell what direction a sprite is facing?
Welcome to the forums! Remember to check the date of a topic before posting.i dont think this works lemme checc if <direction>0>
it is facing left
else
it is facing right, duh
Hope that's what you mean!
https://scratch.mit.edu/discuss/topic/355062/
- Discussion Forums
- » Help with Scripts
-
» How to tell what direction a sprite is facing?