okay so lets say i have an array containing word groups. here’s what it looks like (mockup)
local groups = {
{ word = "hi", positions = { Vector2.new(10, 10), Vector2.new(10, 11) }, hidden = false },
{ word = "bye", positions = { Vector2.new(13, 10), Vector2.new(13, 11), Vector2.new(13, 12) }, hidden = false },
}
and lets say i have a center point. (mockup)
local center = Vector2.new(10, 10)
how would i make sure the word groups are either building off of each other or building off of the center point? i already have the math for combining letters into groups & i validate if theyre actual english words.
but right now, a player can just build wherever they want and it’ll let them. im not greatt at math so if yall could help thatd be nice.
for context, each letter is 1,1 in size so to for example get the one to the left you’d do letterPos - Vector2.new(1, 0)