ci-platforms / darwin amd64 smoke (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Failing after 15m28s
ci / release (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci / checks (push) Successful in 7m47s
21 lines
501 B
Plaintext
21 lines
501 B
Plaintext
package demo
|
|
|
|
import (
|
|
"aego/tween"
|
|
"aego/curve"
|
|
)
|
|
|
|
// This uses the same propref as Animation, and changes only this world's node.
|
|
script FlashTween {
|
|
var flash tween.Tween
|
|
|
|
func Ready() {
|
|
node.Get<MaterialOverride>().SetFloat("Flash", 0)
|
|
flash = tween.ToFloat(node, "MaterialOverride.Flash", 1, 0.9, curve.InOutSine).PingPong(-1)
|
|
}
|
|
|
|
func Reloaded() {
|
|
flash = tween.ToFloat(node, "MaterialOverride.Flash", 1, 0.9, curve.InOutSine).PingPong(-1)
|
|
}
|
|
}
|