Nice! I also don't know this expression - thanks!
But in this case, the object will chose one of this directions/angles.
But you want to create 4 objects and the first one should have angle 0 dagrees, the second one 90 dagrees, the third 180 dagrees and the fourth one have 270 dagrees, right?
- Code: Select all
On ?-Event (pressing button, collision, start of layout, or anything you want):
+ Repeat 4 times = Create Object at X,Y
On Object created = Set angle to Object.Count * 90
When you create 8 Objects, then set the Angle to Object.Count*45.
With 16 Objects, set Angle to Object.Count*22.5.
32 Objects = Objects.Count*11.25.
And so on ...
I don't know if this is what you realy need, but i hope it will help