Skip to content

Commit

Permalink
animation id 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Dec 2, 2023
1 parent b595b57 commit 8ce060a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Autoload/Things.gd
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ func get_proper_creature_name(nm):
return nm

func set_image_based_on_animation_id(thingType, objectID, thingAnimationID):
if int(thingAnimationID) == 0:
return # This is important, if ANIMATIONID is 0 then it shouldn't be set. It should be a grey diamond.

if animation_id_to_image.has(thingAnimationID):
match thingType:
Things.TYPE.OBJECT: DATA_OBJECT[objectID][TEXTURE] = animation_id_to_image[thingAnimationID]
Expand Down
2 changes: 1 addition & 1 deletion dk_images/food/anim0898/AnimEggGrowing1.tres
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[resource]
flags = 9
frames = 5
fps = 10.0
fps = 8.0
frame_0/texture = ExtResource( 4 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down

0 comments on commit 8ce060a

Please sign in to comment.