Skip to content
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

Slice9 Example #19

Merged
merged 3 commits into from
Oct 12, 2021
Merged

Slice9 Example #19

merged 3 commits into from
Oct 12, 2021

Conversation

FlexYourBrain
Copy link
Contributor

Example showcasing slice-9 scaling gui node. Node animation is used for scaling in real time showing slice-9 potential.

Example showcasing slice-9 scaling gui node. Node animation is used for scaling in real time showing slice-9 potential.
function getshape(self) -- < 2 >
local node = gui.get_node("slice_box")
local function animate_size(node, shape) -- < 3 >
gui.animate(node, "size", shape, gui.EASING_INOUTCUBIC, 1.75, 2.5, getshape, gui.PLAYBACK_ONCE_FORWARD)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation looks off

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you pointing to the tab space after getshape? If so fixed.

Copy link
Contributor

@britzl britzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please review the comments!

Good catch thanks! made getshape function local.
I think I fixed indentation, was it before the -- < 2 > ?
Copy link
Contributor

@britzl britzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@britzl britzl merged commit 54048b2 into defold:master Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants