From 58a12e5edb61ac7f0c4798ab0a82909fd1db3e47 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sat, 6 Apr 2024 19:46:05 +0200 Subject: [PATCH] Follower idle animate always --- P3D/Entites/Other/NetworkPokemon.vb | 16 ++++++---------- P3D/Entites/Other/OverworldPokemon.vb | 16 ++++++---------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/P3D/Entites/Other/NetworkPokemon.vb b/P3D/Entites/Other/NetworkPokemon.vb index 78edf170f..20bc41bc7 100644 --- a/P3D/Entites/Other/NetworkPokemon.vb +++ b/P3D/Entites/Other/NetworkPokemon.vb @@ -62,16 +62,12 @@ End If End If Else - If Me.Texture.Width = Me.Texture.Height Then - AnimationX = 1 - Else - Me.AnimationDelay -= 0.1F - If AnimationDelay <= 0.0F Then - AnimationX += 1 - AnimationDelay = 2.2F - If AnimationX > 4 Then - AnimationX = 1 - End If + Me.AnimationDelay -= 0.1F + If AnimationDelay <= 0.0F Then + AnimationX += 1 + AnimationDelay = 2.2F + If AnimationX > 4 Then + AnimationX = 1 End If End If End If diff --git a/P3D/Entites/Other/OverworldPokemon.vb b/P3D/Entites/Other/OverworldPokemon.vb index 9454a21f3..68ac30920 100644 --- a/P3D/Entites/Other/OverworldPokemon.vb +++ b/P3D/Entites/Other/OverworldPokemon.vb @@ -90,17 +90,13 @@ Public Class OverworldPokemon Me.ChangeTexture() - If Moving = True Then - Me.AnimationDelay -= 0.1F - If AnimationDelay <= 0.0F Then - AnimationX += 1 - AnimationDelay = AnimationDelayLength - If AnimationX > 4 Then - AnimationX = 1 - End If + Me.AnimationDelay -= 0.1F + If AnimationDelay <= 0.0F Then + AnimationX += 1 + AnimationDelay = AnimationDelayLength + If AnimationX > 4 Then + AnimationX = 1 End If - Else - AnimationX = 1 End If ChangePosition()