How do I tween a property of a shader #437
-
Beta Was this translation helpful? Give feedback.
Answered by
NexIsDumb
Nov 10, 2024
Replies: 1 comment 8 replies
-
for the fields of a shader you gotta place them as strings, for ex: FlxTween.tween(bgShader, {"distortion": -10.0}, 30, {ease: FlxEase.circOut});
// orrr
FlxTween.tween(bgShader.data.distortion.value, {"[0]": -10.0}, 30, {ease: FlxEase.circOut}); |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
THEkatinamicrowave
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for the fields of a shader you gotta place them as strings, for ex: