and they will both be accessed by individual scripts - one for player, one for the enemies. I aim to have both the Player and the Enemies use this exact same script to determine all their stats and hardpoints etc. This one determines stuff like rotation speed, overall speed, health in the future, ammount of turret and weapon slots etc. I have a 'ShipStats' script, which is attached to every spaceship. Guns I aim to clamp their rotation and put the hardpoints in the front of the ships, while turrets move 360° and are littered all over a ship, which is why they are a separate variable.ĭoes this make sense, by the way? Maybe I could just clamp the guns separately and group turrets and guns under one array, but I'm not sure if there woudln't be any problems, since one type is clamped while the other isn't. These will be two types guns and turrets. My ships will have hardpoints, which the player can fit weapons onto. I'm making a 2D space game, which I aim to constantly pile-into as I learn things, because it's the least complicated type of a game asset-vise.