Microsoft MakeCode

Move to in Story extension breaks randomly

In the story extension whenever I use the move to function at high speeds, there is a good chance of the movement just not working and breaking. Here is the code:

(Debug mode is enabled so the cup with the coin is pink)

As you can see, even in the gif rendering above the moves sometimes just end up being teleports, and sometimes one of the cups just keep sliding down the table…forever

Am I using the extension wrongly? If not, @richard always makes a function that does the same thing on stream, could I have the code for that?

You aren’t using it wrong, I just have never fixed this bug. Lemme go do that right now…

Here’s the function:


Fix is in PR:

1 Like

Thanks! Here is the new code if anyone wants to see cups fly:

(once the cups are done moving there is no code yet)

1 Like