Jump to content
Search Community

How can i add x+= 10 ?

Bedo test
Moderator Tag

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...