Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I’m really stuck on how you move your sprite continuously left.
- Taroco
-
72 posts
I’m really stuck on how you move your sprite continuously left.
Hello everyone! And yes, the subject does sum up my question quite well. I have recently been working on a Scratch project where my Sprite comes running out into the main screen from the left side. I would like this animation to be as smooth as possible, so instead of moving through an animated way, I would prefer it using a block. If anyone knows how to do this it would be really helpful. Thank you!
- deck26
-
1000+ posts
I’m really stuck on how you move your sprite continuously left.
Do you mean you want a scrolling background moving left? Have you checked the wiki pages on scrolling?
- Taroco
-
72 posts
I’m really stuck on how you move your sprite continuously left.
Do you mean you want a scrolling background moving left? Have you checked the wiki pages on scrolling?Not entirely, I'm looking for a sprite to move almost backwards, without pressing any key down. Almost like the ‘move (10) steps block’? I'm sorry, it's quite hard to explain.
Last edited by Taroco (Oct. 2, 2022 14:05:51)
- deck26
-
1000+ posts
I’m really stuck on how you move your sprite continuously left.
Hard to help if we don't understand what you mean. If it's coming from the left how can it be moving left? Perhaps you could create a project showing what you mean just by creating a few images?
- Taroco
-
72 posts
I’m really stuck on how you move your sprite continuously left.
Hard to help if we don't understand what you mean. If it's coming from the left how can it be moving left? Perhaps you could create a project showing what you mean just by creating a few images?Of course, if that would help I will get right to it!
- legendary34678
-
1000+ posts
I’m really stuck on how you move your sprite continuously left.
Do you mean making the sprite move around like it's on slippery ice? So it speeds up gradually and then slows down when it reaches its destination. That's called easing which you can learn more about by doing a quick Google search if it's what you were looking for.
Also, the question you have in your title may be interpreted as you wanting a script like this:
Also, the question you have in your title may be interpreted as you wanting a script like this:
Since that's probably not what you wanted, it's a good indication that your question maybe unclear and needs clarification.
Last edited by legendary34678 (Oct. 2, 2022 18:46:58)
- Taroco
-
72 posts
I’m really stuck on how you move your sprite continuously left.
easing which you can learn more about by doing a quick Google search if it's what you were looking for.Ah okay! Thank you legendary34678! I'm not familiar with ‘easing’ but I will check it out! I am making an explanation project to help clarify what I mean so hopefully that helps! Do you mean making the sprite move around like it's on slippery ice? So it speeds up gradually and then slows down when it reaches its destination. That's called
Also, the question you have in your title may be interpreted as you wanting a script like this:Since that's probably not what you wanted, it's a good indication that your question maybe unclear and needs clarification.

- JustSomeFellow
-
89 posts
I’m really stuck on how you move your sprite continuously left.
You can do this
when green flag clicked
go to x: (240) y: (0)
set to
repeat (10)
change x by (Momentum)
change by (1)
end
repeat (10)
change x by (Momentum)
end
repeat (11)
change x by (Momentum)
change by (-1)
end
when green flag clicked
go to x: (240) y: (0)
set to
repeat (10)
change x by (Momentum)
change by (1)
end
repeat (10)
change x by (Momentum)
end
repeat (11)
change x by (Momentum)
change by (-1)
end
Last edited by JustSomeFellow (Oct. 3, 2022 00:52:03)
- JustSomeFellow
-
89 posts
I’m really stuck on how you move your sprite continuously left.
Sorry, I'm not used to this
- JustSomeFellow
-
89 posts
I’m really stuck on how you move your sprite continuously left.
Last edited by JustSomeFellow (Oct. 3, 2022 00:56:00)
- Taroco
-
72 posts
I’m really stuck on how you move your sprite continuously left.
Ah okay! I’ll try this out as soon as possible. Thank you very much!
- Taroco
-
72 posts
I’m really stuck on how you move your sprite continuously left.
Hard to help if we don't understand what you mean. If it's coming from the left how can it be moving left? Perhaps you could create a project showing what you mean just by creating a few images?
Here you are deck26, my explanation project is complete!
https://scratch.mit.edu/projects/739975866/
- deck26
-
1000+ posts
I’m really stuck on how you move your sprite continuously left.
You can move a negative number of steps. Or you can make sure the sprite is pointing left and move a positive number. Or change x by a negative number.Hard to help if we don't understand what you mean. If it's coming from the left how can it be moving left? Perhaps you could create a project showing what you mean just by creating a few images?
Here you are deck26, my explanation project is complete!
https://scratch.mit.edu/projects/739975866/
Generally a costume in the editor should look as it would be when the character is facing 90 degrees (ie right). When it's a person or other object where the right way up is important it also makes sense to select left-right rotation style as otherwise they will be upside down when facing lefft (full rotation) or not rotate at all (don't rotate as rotation style). So I'd recommend flipping your costumes in the editor. Noty essential but less confusing.
My advice would be to always have a costume in the editor based on what you want when the sprite is facing 90. Then select the most appropriate rotation style - this can oten be done once and forgotten about (no need to even have the block in the project once set). Then use the move n steps block or the change x by n block to move the sprite.
Last edited by deck26 (Oct. 3, 2022 07:52:24)
- cookieclickerer33
-
1000+ posts
I’m really stuck on how you move your sprite continuously left.
Hello everyone! And yes, the subject does sum up my question quite well. I have recently been working on a Scratch project where my Sprite comes running out into the main screen from the left side. I would like this animation to be as smooth as possible, so instead of moving through an animated way, I would prefer it using a block. If anyone knows how to do this it would be really helpful. Thank you!
- Discussion Forums
- » Help with Scripts
-
» I’m really stuck on how you move your sprite continuously left.