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

Delta Chapter behaving weirdly #967

Open lvlark opened 1 month ago

lvlark commented 1 month ago

Describe the bug A clear and concise description of what the bug is. in chapter 11 click on the dropdowns makes them move up and down very fast, and the exercises arent working properly To Reproduce Steps to reproduce the bug:

  1. Go to 'Chapter 11'
  2. Click on 'Drop down menus'
  3. Scroll down to '...'
  4. See error

Expected behavior drop down menu working normally

Screenshots image

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

Additional context Add any other context about the problem here.

NathanLovato commented 1 month ago

I don't know what you mean by dropdowns here. The code in your screenshot may not work as you expect. You rotate the sprite by 2 radians each frame, which is very fast. Then, after rotating, you multiply by delta, which does nothing in this case. You need to multiply by delta inside parentheses for the multiplication to affect the rotation. The amount of the rotation is what you put in parentheses and give to the rotate() function. You can see this mentioned in the error message at the bottom right.