Skip to content

[Scratch API] Virtual Turtle out of sync with Scratch Turtle, at physical limits #58

@oskay

Description

@oskay

When the turtle goes off screen and comes back (in Scratch/Snap), the API's virtual turtle position is no longer in sync with the turtle position that Scratch expects.

screen shot 2014-12-08 at 7 07 55 pm

To reproduce:
Begin with turtle at origin
Move turtle forward 1000 steps
Point turtle towards origin
Move turtle forward 1000 steps.

Expected behavior: Virtual turtle ends up at origin
Actual behavior: Virtual turtle ends up at (-248.25, 0)

There are additional unintended consequences that relate back to the API's virtual turtle no longer matching the position of the on-screen turtle; this is apparently the root cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions