Skip to content

Commit 184bd4e

Browse files
committed
RandomTextureSpriteBehavior: Allow idle + walk animation
Assets: - Rename existing part assets to "idle". - Add walk animation for the legs part. RandomTextureSpriteBehavior: - Export an Array of SpriteFrames resources. Instead of using the custom addon to change the textures. Townie scene: - Add a CharacterSpriteBehavior to each part. And configure the legs part with the new animations. - Add one .tres file per body part variant. And configure each Array of SpriteFrames resources with them. Townie demo: - Add a FollowWalkBehavior to one townie, and remove the TalkBehavior.
1 parent 011d4ee commit 184bd4e

61 files changed

Lines changed: 1615 additions & 261 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scenes/game_elements/characters/components/character_randomizer.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func _randomize_all_sprites_progress() -> void:
131131
var random_frame := randi_range(0, frames_length)
132132
var random_progress := randf()
133133
for sprite in animated_sprites:
134+
sprite.play("idle")
134135
sprite.set_frame_and_progress(random_frame, random_progress)
135136

136137

0 commit comments

Comments
 (0)