Only generating vertically not hotizontally(solved)

so apparently its suppose to generate horizontally on the x axis but its doing it on the y axis instead


^ these are not the same

You should really stop using Variable(), it was deprecated long ago.

create tile at position: Origin.X() + 40 * x, Origin.Y() + 40 * y
The variable x > SizeX

EDIT: Just wanted to mention, this doesn’t look like it has a way to stop itself? I think you need a condition to set x/y back to 0 once it reaches the desired size

ye I’m following a world generation tutorial so uhhh ye I have to use it

But if you hadn’t used it - it would have turned red and you’d have know it wasn’t right! - its just more words to type!

1 Like

There’s no critical difference between Variable(x) and just x. So any time that appears in the tutorial you can just write the variable name instead.

The one thing is that GD will bug you to declare the variables if they aren’t already declared, but that’s a small compensation for not having to type Variable over and over (and having better error checking as pet mentioned)

2 Likes