Explorar el Código

bunch of fixes based on feedback, adding changelog

galo hace 1 año
padre
commit
7ef91d621e
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 1 1
      Client.gd
  2. 0 1
      main.tscn

+ 1 - 1
Client.gd

@@ -251,7 +251,7 @@ remote func add_sprite(anim, pos, id):
 		instancer.id = id
 		sprite_list[id] = instancer
 	sprite_list[id].global_position = pos
-	sprite_list[id].set_animation(anim)
+	if sprite_list[id].get_animation() != anim: sprite_list[id].set_animation(anim)
 
 remote func nuke_sprite(id):
 	if sprite_list.keys().has(id):

+ 0 - 1
main.tscn

@@ -227,7 +227,6 @@ render_target_v_flip = true
 [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin4"]
 modulate = Color( 1, 0, 0.984314, 1 )
 frames = SubResource( 5 )
-frame = 1
 speed_scale = 0.9
 playing = true
 offset = Vector2( 32, 32 )