Author Topic: How does one make a random spawn brick?  (Read 640 times)

i was just making an arena type thing, and i wanted it so that when the player touches a certain brick, it will randomly teleport them to a random selection of a set of bricks, like say i had a bunch of bricks with different arena names, is there a way that i can make it so i do not know which one i will teleport to?

Rotondo's setPlayerTransform event is probably needed for this, but it only uses the last created named brick if you use it on a set of named bricks with the same name. What you probably could do is build a 'machine' that fires a projectile (radio wave etc.) into a stack of 1x1s using the 'spread' function of spawnProjectile, which is random - then, for whichever one it hits, teleport the player to a different named brick.

thanks, im too lazy to do that though so i guess ill just do a levels sorta thing

 :cookieMonster: