GDQuest / learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
https://gdquest.github.io/learn-gdscript/
Other
2.04k stars 149 forks source link

Wrong execution and visuals lead to success in L7P2 #950

Open SuperPranx opened 4 months ago

SuperPranx commented 4 months ago

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:

  1. Go to Lesson 7, Practice 2 (Draw squares at different positions)
  2. 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);
  3. Press "Run"
  4. 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):