learn-gdscript
learn-gdscript copied to clipboard
Wrong execution and visuals lead to success in L7P2
Describe the bug When executing the solution for Lesson 7 - Practice 2, the turtle seems to jump to the wrong coordinates and then executes unexpected drawing that in the end is recognized as successful by the Practice environment.
To Reproduce Steps to reproduce the bug:
- Go to Lesson 7, Practice 2 (Draw squares at different positions)
- Enter the following code in the editor:
func run(): position.x = 100; position.y = 100; draw_rectangle(100, 100); jump(200, 0); draw_rectangle(100, 100); jump(200, 0); draw_rectangle(100, 100); - Press "Run"
- Observe the turtle drawing (also see attached video)
Expected behavior Well, maybe my usage of "jump" is wrong or unexpected in this exercise, but I wouldn't have expected the outcome or the fact it was successful.
Video https://github.com/GDQuest/learn-gdscript/assets/10331510/be44a6b4-19ad-4f28-93f0-1b7ea6ed5cb1
Logs Not sure if you need them, but I guess they can't hurt. gdquest-1714824612473.log
Information about your device (please complete the following information):
- Operating System: Windows 10
- Browser: Firefox 125.0.3 (64-bit)