#How can i get parts in a random position within another part?

16 messages · Page 1 of 1 (latest)

fervent smelt
#

But without touching each other and within a certain distance? I'm trying to make a procedural dungeon game with rooms at random positions and hallways connecting them, but how can i make them not touch each other and not be so far

vivid hearth
#

add a magnitude check

fervent smelt
#

but after i create the rooms? how would i do so every room has a magnitude check with every room except theirs? this is my code

#

accidentally typed a S but anyway

vivid hearth
sharp mistBOT
#

studio** You are now Level 1! **studio

buoyant surge
#

This is a really simple solution but there’s better ways if you’re doing this for a lot of parts

fervent smelt
#

Alright

fervent smelt
vivid hearth
fervent smelt
#

this doesn't quite work

sonic gladeBOT
#
Program Output
/opt/wandbox/lua-5.4.3/bin/lua: prog.lua:4: unexpected symbol near ':'

fervent smelt
#

you just added a variable