hive mind anim sped up
This commit is contained in:
1 parent
aebe6104f9
commit
d702f28a7f
2 files changed
+2
-2
No files matched your search
@@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
npc.frameCounter += 0.15f;
|
||||
npc.frameCounter += 1f / 6f;
|
||||
npc.frameCounter %= Main.npcFrameCount[npc.type];
|
||||
int frame = (int)npc.frameCounter;
|
||||
npc.frame.Y = frame * frameHeight;
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
npc.frame.Width = width;
|
||||
npc.frame.Height = height;
|
||||
npc.frameCounter++;
|
||||
if (npc.frameCounter > 6)
|
||||
if (npc.frameCounter >= 6)
|
||||
{
|
||||
npc.frame.X = counter >= 8 ? width + 3 : 0;
|
||||
if (counter == 8)
|
||||
|
||||
Reference in new issue
Block a user