Skip to content

How do I tween a property of a shader #437

Closed Answered by NexIsDumb
THEkatinamicrowave asked this question in Q&A
Discussion options

You must be logged in to vote

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});

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@THEkatinamicrowave
Comment options

@NeeEoo
Comment options

@THEkatinamicrowave
Comment options

@NeeEoo
Comment options

@THEkatinamicrowave
Comment options

Answer selected by THEkatinamicrowave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants