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.1k stars 155 forks source link

Lesson 10, Exercise 1,2 - Character passes exercise even thought it's not rotating clockwise #906

Open QWERTIOX opened 9 months ago

QWERTIOX commented 9 months ago

Describe the bug Exercise takes 0.95 as equal to 0.05 radians

To Reproduce Steps to reproduce the bug:

  1. Go to lesson 10 exercise 1
  2. Run following code:
    func _process(delta):
    rotate(0.95)

    Steps to reproduce the bug:

  3. Go to lesson 10 exercise 2
  4. Run following code:
    func _process(delta):
    rotate(0.95)
    move_local_x(5)

Expected behavior Fail the exercise, because it is not rotating clockwise

Screenshots image image

Information about your device:

Additional context Robot is rotating very fast