WHAT ITS FOR
Turret (or tank) is a special kind of enemy, which can aim the player with its turret and cannon.
HOW THAT WORKS
To transform an enemy into a turret or a tank, you need to create separates turret and cannon objects.
Cannons are optional and are not used for 2D sprites.
To make it works, you have to add _TURRET at the end of the name of your turett object file and _CANNON at the end of the name of your cannon object file.
Example: if your enemy is called “tank.fbx”, you’ll have to name the turret object “tank_TURRET.fbx” and the canon “tank_CANNON.fbx” and save them in assets/enemies/3D.
The SHMUP Creator will import the objects and automatically transform the enemy into a turret.
Same thing for sprites, with for example tank.png and tank_TURRET.png, saved in assets/enemies/sprites.
The turret will rotate to follow the player, and the cannon can move up and down to aim the player. You can then modify the rotation speed and limits in the enemy properties. (See enemies properties)
Note: for 3D objects, don't forget to place the pivot at the cannon base and to do a reset Xform. Note: for sprites, the center of the turret and cannon is at the picture center.