Bedo Posted November 9, 2010 Share Posted November 9, 2010 i need to tween each keypress but tween max directly go +10px and never update itself any help? function keykode_1(event:KeyboardEvent):void { if(event.keyCode == 37) { trace("OK!"); Char.x -= 1; TweenLite.to(BG, 0.5, {x:+10}); //BG.x += 10; // i need this part for tweening trace(BG.x); CheckStagel() }} Link to comment Share on other sites More sharing options...
t0m Posted November 9, 2010 Share Posted November 9, 2010 instead of x:+10 you want x:"10" anything in quotes is relative to the current position of the target. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now