Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a sprite look in the direction its going in?
- Remoraid81
-
53 posts
How to make a sprite look in the direction its going in?
I have made my sprite move randomly like this -
How do I make it look in the right direction when it moves randomly?
But my sprite would always face right.
How do I make it look in the right direction when it moves randomly?
Last edited by Remoraid81 (March 25, 2016 01:42:17)
- deck26
-
1000+ posts
How to make a sprite look in the direction its going in?
Make sure the costume is facing right in the editor.
If the sprite is something like a person set rotation style to left-right and make sure you point in the direction you're going to move.
If the sprite can rotate all round set that rotation style and again make sure you point in the direction you want to move.
If the sprite is something like a person set rotation style to left-right and make sure you point in the direction you're going to move.
If the sprite can rotate all round set that rotation style and again make sure you point in the direction you want to move.
- asivi
-
1000+ posts
How to make a sprite look in the direction its going in?
To point towards you want glide try this example
- Remoraid81
-
53 posts
How to make a sprite look in the direction its going in?
I have edited the post
- asivi
-
1000+ posts
How to make a sprite look in the direction its going in?
this block allows left and right facing
- Mango56789
-
6 posts
How to make a sprite look in the direction its going in?
Last edited by Mango56789 (April 19, 2018 06:43:21)
- deck26
-
1000+ posts
How to make a sprite look in the direction its going in?
Please don't necropost. Create your own topic if you have a question. eh?
- TheCodingLamp
-
49 posts
How to make a sprite look in the direction its going in?
Righto. You need a bit of math for this. OR you could use a bit of a trick.
You can first make a new sprite. It can be completely blank, and make sure you hide it so it doesn't interrupt the project.
Now, before the glide, move the new sprite to whatever destination you're gliding to.
You can now run the “point towards (The NewSprite's Name)” before gliding.
Hope this helped!
You can first make a new sprite. It can be completely blank, and make sure you hide it so it doesn't interrupt the project.
Now, before the glide, move the new sprite to whatever destination you're gliding to.
You can now run the “point towards (The NewSprite's Name)” before gliding.
Hope this helped!
- bsteichman
-
500+ posts
How to make a sprite look in the direction its going in?
use this in your code that moves randomly
and if you want your sprite to rotate again use
your sprite will move randomly but face the same direction.
and if you want your sprite to rotate again use
in that code…
Last edited by bsteichman (April 19, 2021 13:15:42)
- water_guy1212
-
1 post
How to make a sprite look in the direction its going in?
BRUH DATS A LIE
- Theroverbowman
-
6 posts
How to make a sprite look in the direction its going in?
I have made my sprite move randomly like this -But my sprite would always face right.
How do I make it look in the right direction when it moves randomly?
you can just make another costume and flip it horizontally.
- Discussion Forums
- » Help with Scripts
-
» How to make a sprite look in the direction its going in?