Skip to content

Instantly share code, notes, and snippets.

@russelarms
Created May 28, 2017 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russelarms/5ccbcda7ae1f8f6ff59498b0912d0061 to your computer and use it in GitHub Desktop.
Save russelarms/5ccbcda7ae1f8f6ff59498b0912d0061 to your computer and use it in GitHub Desktop.
scene.page(2).step(2)
.createAnimation(0, 90)
.setDuration(0.25f)
.setListener(value -> submarine.setRotation(value));
scene.page(2).step(3)
.createAnimation(90, 180)
.setStartThreshold(0.25f)
.setDuration(0.25f)
.setListener(value -> submarine.setRotation(value));
scene.page(2).step(4)
.createAnimation(180, 270)
.setStartThreshold(0.5f)
.setListener(value -> submarine.setRotation(value))
.setDuration(0.25f);
scene.page(2).step(5)
.createAnimation(270, 360)
.setStartThreshold(0.75f)
.setDuration(0.25f)
.setListener(value -> submarine.setRotation(value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment