mirror of
https://github.com/Relintai/broken_seals_2d.git
synced 2024-11-08 05:32:10 +01:00
Make sure that the last frame in the generated atlas is not the same as the first to make the animation look better.
This commit is contained in:
parent
003633ac0f
commit
fb3d7ea82a
@ -148,7 +148,7 @@ func _process(delta):
|
|||||||
|
|
||||||
_texture.blend_rect(frame, ur, Vector2((_frame * _sprite_size) + xx, (_index * _sprite_size)))
|
_texture.blend_rect(frame, ur, Vector2((_frame * _sprite_size) + xx, (_index * _sprite_size)))
|
||||||
|
|
||||||
_current_animation_player.seek(_frame * (_current_animation_player.current_animation_length / (_sprite_num - 1)), true)
|
_current_animation_player.seek(_frame * (_current_animation_player.current_animation_length / (_sprite_num)), true)
|
||||||
|
|
||||||
_frame += 1
|
_frame += 1
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 43 KiB |
Loading…
Reference in New Issue
Block a user