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 19 Practice 1: Robot not moving #916

Open NoBrainer91 opened 9 months ago

NoBrainer91 commented 9 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 7 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.