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 9: Damaging the Robot Goals are confusing #815

Open razcore-rad opened 1 year ago

razcore-rad commented 1 year ago

The Goals description is confusing:

In our game, the main character has a certain amount of health. When it gets hit, the health should go down by a varying amount of damage.

Add to the take_damage() function so it subtracts the amount to the predefined health variable.

The robot starts with 100 health and will take 50 damage.

Especially the second paragraph: Add to the take_damage() [...].

It's also unclear that amount, the take_damage() function parameter will have the value 50. It can be interpreted that the student has to subtract a constant 50 value.

Open based on: https://gdquest.mavenseed.com/community/15797-damaging-the-robot

elihaun commented 8 months ago

I just had this same issue. the description states that the robot starts with 100 health and they will take an amount of damage equal to 50. using 50 (which makes the most sense as it is not an abstract like 'amount') gives an error, and the solutions says to use the 'amount'.