Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲Turtle commands in if-pressed statements terminate unexpectedly #5729

Closed
boryanagoncharenko opened this issue Aug 29, 2024 · 0 comments · Fixed by #5763
Closed

🪲Turtle commands in if-pressed statements terminate unexpectedly #5729

boryanagoncharenko opened this issue Aug 29, 2024 · 0 comments · Fixed by #5763
Assignees
Labels
bug Something isn't working

Comments

@boryanagoncharenko
Copy link
Collaborator

boryanagoncharenko commented Aug 29, 2024

Describe the bug
If the body of an if-pressed statement contains multiple turtle commands, only the first gets executed

Paste the Hedy code & level
Level 12:

if x is pressed
    forward 90
    turn 90
    forward 90
else
    forward 90
    turn -90
    forward 90

Add a screenshot (optional)
Screenshot 2024-08-29 at 17 06 38

The issue seems to be related to #5681. We decided to go with the not-so-great solution of removing the time.sleep statements. Obviously, we cannot drop the forward or turn command here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant