Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Can two sprites move simultaneously? PLEASE HELP
- vcronk
-
New Scratcher
2 posts
Can two sprites move simultaneously? PLEASE HELP
I am working on a project with a group and we have two sprites that eventually touch. We are wondering if there is a way to lock them together to have them move together at the same speed. If anyone can please help me and explain the best you can I would appreciate it. Thank you.
- RyanCoder81
-
Scratcher
66 posts
Can two sprites move simultaneously? PLEASE HELP
Use this:
when green flag clickedThen, on both sprites, go:
forever
if <touching [the other sprite] ?> then
broadcast [message1]
end
end
when I receive [message1]Hope this helps!
move (whatever) steps
- OfficialYTArif
-
New Scratcher
1 post
Can two sprites move simultaneously? PLEASE HELP
How do I make 2 sprites running at the same time. Please help me it will mean a lot. 

Last edited by OfficialYTArif (Oct. 2, 2017 07:48:54)
- asivi
-
Scratcher
1000+ posts
Can two sprites move simultaneously? PLEASE HELP
How do I make 2 sprites running at the same time. Please help me it will mean a lot.
https://scratch.mit.edu/tips
- ggenije
-
Scratcher
500+ posts
Can two sprites move simultaneously? PLEASE HELP
If(touching)
{
object2.x=object1.x+Size.x
object2.y=object1.y+Size.y
}
where is size distance you want to that object be on
{
object2.x=object1.x+Size.x
object2.y=object1.y+Size.y
}
where is size distance you want to that object be on
- 0037318
-
Scratcher
100+ posts
Can two sprites move simultaneously? PLEASE HELP
Inside of both sprites, put
That will make them keep moving until they hit each other when the flag is clicked. They will also move at the same time.
when green flag clicked
forever
if <touching [other sprite v] ?> then
replace this with the code you use to move
else
stop [this script v]
end
end
That will make them keep moving until they hit each other when the flag is clicked. They will also move at the same time.
- gtoal
-
Scratcher
1000+ posts
Can two sprites move simultaneously? PLEASE HELP
You are probably using the glide block. Dont, then the problem goes away.
- deck26
-
Scratcher
1000+ posts
Can two sprites move simultaneously? PLEASE HELP
noPlease don't necropost. This was dealt with years ago and your post adds nothing useful.
- Anime_gamez
-
Scratcher
1 post
Can two sprites move simultaneously? PLEASE HELP
The answers to the question all have the “if touching” block, but I can't type in other sprite in the block, can someone please tell me why?
- Arzenist
-
Scratcher
98 posts
Can two sprites move simultaneously? PLEASE HELP
The answers to the question all have the “if touching” block, but I can't type in other sprite in the block, can someone please tell me why?
Use a variable, input it into the touching sprite block, then you can type in any sprite you want, even the sprite its in, create a new topic if you need further help or if i just dont make sense because this is considered necro posting
- Discussion Forums
- » Help with Scripts
-
» Can two sprites move simultaneously? PLEASE HELP








