Random offset for orbit

How can I create a set offset for each of the swords in my game? Using @JR01’s orbit example.
@Galactian @CodeAlpaca

2 Likes

You could use an Extractor to do it based off of

  1. Starting Value (This would require you to spawn them in)
  2. Name (You could name each one a Number and then use Text to Number to convert that number to an offset)
  3. X/Y position

I think the Starting Value would be the easiest one to do.

3 Likes

So the x/y doesn’t do anything because the code aromatically sets the position for each one to the same area

1 Like

True, I was just thinking of loading the X/Y position first and then start rotating around the object.

1 Like

If you did the “Name” option it would look like this


(Each object is labeled 1-4. You could also just name them the angle)

2 Likes

If they are spawned in, try inputting the sword number into spawn and grab that number by using starting value in the extractor behavior.

2 Likes

So I just made it use the starting value I already calculated.

3 Likes