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.07k stars 153 forks source link

Lesson 11 "Moving in a Circle Using Delta" passes with wrong code #748

Closed Maltavius closed 1 year ago

Maltavius commented 1 year ago

Describe the bug The lesson passes with wrong solution

To Reproduce Enter lesson Write: func _process(delta): rotate(2*delta) move_local_x(delta,100)

Expected behavior This moves in a circle but not a 100 offset circle.

Screenshots image

Information about your device (please complete the following information):

Additional context

NathanLovato commented 1 year ago

This one is interesting because there should be a type error when calling move_local_x(delta,100), but it seems the GDScript compiler converts the value 100.

Technically with your code the robot is actually kind of moving in a circle, it is just at the circle is very tiny because you use delta.

Anyway I'll add a mini fix to this issue