Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Move 10 steps to the side?
- JannyWanny
-
Scratcher
6 posts
Move 10 steps to the side?
I'm trying to make a projectile fire out of a sprite but in a certain place in it if that makes sense. For example I need to move the projectile to the actual cannon of the boat before it being fired. In my game the projectile needs to move 10 steps up to be on the same y level as the barrel and change x by 10 to the be on the same x level as the barrel. This should work fine but if the boat turns around the change x block doesn't move the projectile accordingly as the direction of the boat.
If there was a way to move a sprite 10 steps the to side that would help.
go to [boat]
move (10) steps
change x by (10)
point in direction ([direction] of [boat])
If there was a way to move a sprite 10 steps the to side that would help.
Last edited by JannyWanny (April 12, 2024 22:36:02)
- SpyCoderX
-
Scratcher
1000+ posts
Move 10 steps to the side?
You could try this:
Hope this helps!
turn ccw (90) degrees
move (10) steps
turn cw (90) degrees
Hope this helps!
- JannyWanny
-
Scratcher
6 posts
Move 10 steps to the side?
You could try this:I feel kinda dumb now. Thanks though!turn ccw (90) degrees
move (10) steps
turn cw (90) degrees
Hope this helps!
- SpyCoderX
-
Scratcher
1000+ posts
Move 10 steps to the side?
You’re welcome lolYou could try this:I feel kinda dumb now. Thanks though!turn ccw (90) degrees
move (10) steps
turn cw (90) degrees
Hope this helps!
Don’t feel bad, we’re always learning; and there’s always someone who knows more than us.
- Discussion Forums
- » Help with Scripts
-
» Move 10 steps to the side?

