-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add actions to tween effect properties #5993
Conversation
duration, | ||
easing, | ||
linearInterpolation, | ||
effect ? effect.getDoubleParameter(propertyName) : 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this error if there is no effect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you you think I should add an error log?
I'm not sure if it's necessary because it's a drop-down list in the UI (though it's missing for object effects)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. I guess we don't want the game to crash but an log could be useful for debugging purposes
@@ -1,6 +1,10 @@ | |||
// @ts-nocheck - TODO: fix typings in this file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💜
@@ -47,11 +47,22 @@ namespace gdjs { | |||
1 | |||
); | |||
} | |||
getDoubleParameter(filter: PIXI.Filter, parameterName: string): number { | |||
return filter.uniforms[parameterName] || 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No if statements here either?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to merge with the error log should the effect miss
It can be useful for:
Changes