Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to remove the delay of when a sprite follows another sprite
- Nicomicap
-
Scratcher
16 posts
How to remove the delay of when a sprite follows another sprite
Gameplay Video…
as you can see the arrow on top of the guy is following his direction but a frame late please help
as you can see the arrow on top of the guy is following his direction but a frame late please help
Last edited by Nicomicap (Nov. 12, 2022 15:58:14)
- scratchcode1_2_3
-
Scratcher
1000+ posts
How to remove the delay of when a sprite follows another sprite
Could you please just share a link to your project? I don't usually trust out-of-site links, and I'm sure most people don't, so, I want to try your project out myself.
- Nicomicap
-
Scratcher
16 posts
How to remove the delay of when a sprite follows another sprite
Could you please just share a link to your project? I don't usually trust out-of-site links, and I'm sure most people don't, so, I want to try your project out myself.i usually do that but its just that theres a lot of code in the project and it might be hard to find but the code looks like this.

- scratchcode1_2_3
-
Scratcher
1000+ posts
How to remove the delay of when a sprite follows another sprite
Could you please just share a link to your project? I don't usually trust out-of-site links, and I'm sure most people don't, so, I want to try your project out myself.i usually do that but its just that theres a lot of code in the project and it might be hard to find but the code looks like this.
I still need to see the other sprite's code to see if it is a problem with syncronization, and I want to test it out myself to see if I can improve it. It doesn't matter if there is a lot of code, that's why I'm here! To help

- deck26
-
Scratcher
1000+ posts
How to remove the delay of when a sprite follows another sprite
Don't use a forever loop, use a broadcast. That's the best way to be sure the first sprite moves first and only then does the second one follow. A forever loop could move the second sprite first in each frame.
- scratchcode1_2_3
-
Scratcher
1000+ posts
How to remove the delay of when a sprite follows another sprite
Don't use a forever loop, use a broadcast. That's the best way to be sure the first sprite moves first and only then does the second one follow. A forever loop could move the second sprite first in each frame.
It usually works by only letting the other sprite move exactly when the broadcast is received, as well with the first sprite. When the two broadcasts are received, they should have no extra delays or unbalanced/extra screen refreshes, so the first sprite can be synchronized with the second.
- Discussion Forums
- » Help with Scripts
-
» How to remove the delay of when a sprite follows another sprite