Forum Topic: Moving an object diagonally in AS2

(99 views • 1 reply)

This topic is 1 page long.

<< < > >>
None

Jeff354

Reply To Post Reply & Quote

Posted at: 8/7/09 06:01 PM

Jeff354 NEUTRAL LEVEL 03

Sign-Up: 04/26/09

Posts: 5

how would you move an object diagonally in as2?


None

Afro-Ninja

Reply To Post Reply & Quote

Posted at: 8/7/09 06:13 PM

Afro-Ninja EVIL LEVEL 38

Sign-Up: 03/02/02

Posts: 13,460

increment your x/y properties at the same time?

onClipEvent(enterFrame)
{
_x+=2;
_y+=2;
}

that will move a clip down to the right 2px each frame

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 06:48 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!