[Skin] Animation #10

Closed
opened 2022-11-27 16:50:36 +08:00 by Pop_Slime · 1 comment
Owner

Description

Explore a syntax for animation.

## Description Explore a syntax for animation.
Pop_Slime added the
feature
label 2022-11-27 16:50:36 +08:00
Pop_Slime added this to the crtr project 2022-11-27 16:50:36 +08:00
Pop_Slime added this to the 0.6.1 milestone 2023-03-03 16:53:31 +08:00
Author
Owner

Solution

  • Example animation name: a_test
animations {
	a_test {
		sprite.scale: anim(1, 0.9, ease_in());
		0, 0.5 {
			mesh.color: anim((1, 1, 1), (0.9, 0.3, 0.2));
		}
		0.5, 1 {
			mesh.color: anim((0.9, 0.3, 0.2), (1, 1, 1));
		}
	}
}
## Solution - Example animation name: `a_test` ``` animations { a_test { sprite.scale: anim(1, 0.9, ease_in()); 0, 0.5 { mesh.color: anim((1, 1, 1), (0.9, 0.3, 0.2)); } 0.5, 1 { mesh.color: anim((0.9, 0.3, 0.2), (1, 1, 1)); } } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Pop_Slime/crtr#10
No description provided.