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.12k stars 162 forks source link

Lesson 19 Practice 1: Robot not moving #916

Open NoBrainer91 opened 10 months ago

NoBrainer91 commented 10 months ago

I've done exactly as the code asked and called the function robot.move_to() inside the run() function but nothing is happening. The lesson hasn't told me to do anything beyond just calling the robot.move() function.

To Reproduce Do exactly as the practice describes.

Expected behavior Apparently it's meant to look at the array and use that to navigate the blue path but nothing is happening.

Screenshots Screenshot 2024-01-31 at 15 10 10

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

baetup commented 8 months ago

Not a bug. In the Goals panel on the left, it is specifically stated " Your task is to use a for loop to make the robot move." . So you have to pass a Vector2 as argument for the move_to() func, that you get by looping through robot_path array using for loop.