Npc.velocity = Methods.PolarVector(acceleration, flyDirection) If (useJitterMethod = 1) // jitter method 1 Acceleration MoveTo = new Vector2(, - heightAbovePlayer) įlyDirection = (moveTo - npc.Center).ToRotation() look at stuff.cs for information on the SlowRotation and PolarVector settings for jitter method 2 float speed = 12 // how fast it moves float rotationSpeed = 20 // rotation speed in degrees per frame public override void AI() 8f // acceleration rate float maxSpeed = 7f // max speed // variables used for jitter method 2 float currentFlyDirection variables used for jitter method 1 // settings for jitter method 1 float acceleration =. settings for both methods float heightAbovePlayer = 200 ![]() Int useJitterMethod = 1 // set this to 1 for method 1 set it to 2 for method 2 // variables used for both methods Npc.lifeMax = Main.expertMode ? 3000 : 5000
0 Comments
Leave a Reply. |