GDQuest/learn-gdscript

"Lesson 23 - Excercise 2: Realign the train tracks" problem to understand task

Opened this issue · 0 comments

Issue description:

From the goals description, i understand the situation as follows:

some train tracks are misaligned. my task is to align the tracks and do that from the end ("with negative indices"). i don't understand why the last part is important. i also don't understand what align() does exactly, because there is no reference

so i align every track, starting with the last one. then every track should be perfectly aligned, right? (no)

Screenshot from 2024-08-11 18 06 21

My Code:

func fix_tracks():
	var tracks_size = tracks.size() - 1
	print(tracks_size)
	for i in range(tracks_size):
		print(i)
		align(tracks[tracks_size - i])

Maybe the part "You have to find them..." is important here. How should i find misaligned tracks? Should i do that by looking at the visualization or create a function?

I did not need the information in the hints. I would need hints that lead me to the solution, or a better description of the goal in the first place.

maybe i'm thinking too complicated.

i have to look at the solution now (ohh)


latest offline course downloaded from itch.io. not sure if that is identical to the last release from github (1.5.2)