java - Tweenengine Timeline not working -
i trying shake object using java universal tween engine.
below code. first animation runs. help me this?
float time = 0.5f; float shakeangle = 10; timeline.createsequence() .push(tween.to(this, tween_rotation, 0.5f).target(shakeangle*2.0f)) .push(tween.to(this, tween_rotation, 0.5f).target(shakeangle*-1.0f)) .push(tween.to(this, tween_rotation, 0.5f).target(shakeangle*0.0f)) .start(tweenmanagerhelper.sharedinstance().manager);
i not utilize tween engine, looking around found , illustration of usage here:
java-universal-tween-engine
here relative part can useful you:
float time = 0.5f; float shakeangle = 10; timeline.createsequence() .push(tween.to(this, tween_rotation, 0.5f).target(shakeangle*2.0f).ease(quad.inout)) .push(tween.to(this, tween_rotation, 0.5f).target(shakeangle*-1.0f).ease(quad.inout)) .push(tween.to(this, tween_rotation, 0.5f).target(shakeangle*0.0f).ease(quad.inout)) .start(tweenmanagerhelper.sharedinstance().manager);
java libgdx
No comments:
Post a Comment