Directional Orientation

VariaBULLET2D’s default assumption is that the Controller is attached to a parent gameobject that’s oriented on a horizontal plane and facing to the right. Of course this is only one of several possible scenarios.


There are numerous ways to accommodate these different scenarios, but perhaps the easiest way to change orientation is by using the SpreadPattern‘s Parent Rotation control. In this case, if you want the controller’s top-most parent object (and its sprite) to orient vertically (pointing towards the top of the screen), simple change Parent Rotation to 90. If you want it to point vertically downwards then set it to -90.

Of course you can use Parent Rotation to simply change the rotation of the entire pattern, but it’s generally better to use the Center Rotation control to achieve this when you don’t want to change the visual orientation of the parent object/sprite.


Meanwhile, the best way to handle horizontal/vertical flipping is by changing the scaling of the top-most parent’s localScale.x or localScale.y to either 1 or -1.