Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Move in direction
- Cyoce
- Scratcher
500+ posts
Move in direction
move (space) steps in direction(angle)
I want this to move my sprite in the direction of
(angle).
As if the sprite turns to face the direction
(angle), and then uses a
move (space) stepsblock, but WITHOUT changing its direction. Any suggestions?
- Jemmerl
- Scratcher
100+ posts
Move in direction
Use costumes! Like set it so, when u move, say left, change costume to a pick of your sprite, facing left.
—————————————————————————————————————————————————————————————————————————–Visit my studio!
http://scratch.mit.edu/studios/509384/
switch costume to [looking.left v]
—————————————————————————————————————————————————————————————————————————–Visit my studio!
http://scratch.mit.edu/studios/509384/
Always use message1. The gods of Scratch gave it to you for a reason.
- Jemmerl
- Scratcher
100+ posts
Move in direction
that is, what you mean right?
(your question confused me)
err: Potato cannot be defined
(your question confused me)
define Potato
err: Potato cannot be defined
Always use message1. The gods of Scratch gave it to you for a reason.
- Cyoce
- Scratcher
500+ posts
Move in direction
It is not.
Let's say my Sprite's current direction is 90°.
I want it to move in the direction of 30°, without turning to face 30°. Basically strafing.
Let's say my Sprite's current direction is 90°.
I want it to move in the direction of 30°, without turning to face 30°. Basically strafing.
- Thepuzzlegame
- Scratcher
1000+ posts
Move in direction
Do this:
move () steps in direction ()::custom
define move (steps) steps in direction (angle)
set rotation style [don't rotate v]
point in direction (angle::parameter)
move (steps::parameter) steps
hi!
- ACE2_0
- Scratcher
11 posts
Move in direction
You could also do:
That way, it would then revert the sprite to its original angle.
define move (steps) steps in direction (angle)
set [past angle v] to (direction)
set rotation style [don't rotate v]
point in direction (angle)
move (steps) steps
point in direction (past angle)
set rotation style [all around v]
That way, it would then revert the sprite to its original angle.
when green flag clicked
forever
if <reaching (Computer :: stack #0000FF) :: pen> then
execute (hack.exe :: ring #00FF00) :: #FF0055
else
boost hack range by {
get (distance to (Computer :: stack #0000FF) :: ring custom) :: #FF00FF
} :: #00FF00
long range hack (Computer :: stack #0000FF) at (get (distance to (Computer :: stack #0000FF) :: ring custom) :: stack #FF00FF) :: #000000
end
end
- deck26
- Scratcher
1000+ posts
Move in direction
Why are you posting on a topic from 2014? Please don't necropost. You could also do:define move (steps) steps in direction (angle)
set [past angle v] to (direction)
set rotation style [don't rotate v]
point in direction (angle)
move (steps) steps
point in direction (past angle)
set rotation style [all around v]
That way, it would then revert the sprite to its original angle.
- BluePC1
- Scratcher
98 posts
Move in direction
sorry accidentally posted! don't know how to remove it…. lol
Last edited by BluePC1 (Sept. 25, 2019 09:05:23)
BLUEPC1
Best Projects Ever… Trying to build up some followers… check em out! Like, Favorite, Follow,
Thanks a Quadtrillion!
https://scratch.mit.edu/projects/103545123/
https://scratch.mit.edu/projects/324741160/
- Discussion Forums
- » Help with Scripts
- » Move in direction