-
AS2 to AS3
hey everyone.
Can anyone help me to convert this code to as3. As I don't know as2.
null[] = !changingLane ? (if (!jumping) goto 173, jumpSpeed = jumpSpeed - jumpAcceleration * seconds, z = z + jumpSpeed * seconds, if (z > 0) goto 171, z = 0, jumping = false, this.updatePosition(), function (seconds)
{
if (x <= changingToLaneX)
{
} // end if
if (x >= changingToLaneX)
{
} // end if
if (jumping)
{
if (z <= 0)
{
} // end if
} // end if
}) : (this.updatePosition(), shadow.setPosition(x, y, 0), "move");
-
A lot of people copy code from the internet in hopes of getting the functions they need to make a quick fix. I would suggest that you create your own code using only the theory of the codes you have at hand. This will make your games a lot better, and personal. You will also become a better programmer.
Take your time to learn a programming language to the extent that you will be able to translate that yourself and I will guarantee that you will get a lot more sponsorships, on your games.
-
@stras :- Thanks for your advice.
I have no more idea as it was a favour asked by a friend to just make him understand this chunk of code. But I was not able to understand as I don't know as2 so thought may be u people could just make it clear.
Thanks anyways